mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
fs/namespace.c: path_is_under can be boolean
This patch makes path_is_under return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
3e004eea56
commit
25ab4c9b1c
2 changed files with 3 additions and 3 deletions
|
|
@ -2939,9 +2939,9 @@ bool is_path_reachable(struct mount *mnt, struct dentry *dentry,
|
|||
return &mnt->mnt == root->mnt && is_subdir(dentry, root->dentry);
|
||||
}
|
||||
|
||||
int path_is_under(struct path *path1, struct path *path2)
|
||||
bool path_is_under(struct path *path1, struct path *path2)
|
||||
{
|
||||
int res;
|
||||
bool res;
|
||||
read_seqlock_excl(&mount_lock);
|
||||
res = is_path_reachable(real_mount(path1->mnt), path1->dentry, path2);
|
||||
read_sequnlock_excl(&mount_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue