mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] autofs4: change may_umount* functions to boolean
Change the functions may_umount and may_umount_tree to boolean functions to aid code readability. Signed-off-by: Ian Kent <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
90a59c7cf5
commit
e3474a8eb3
4 changed files with 7 additions and 7 deletions
|
|
@ -92,7 +92,7 @@ struct autofs_dir_ent *autofs_expire(struct super_block *sb,
|
|||
;
|
||||
dput(dentry);
|
||||
|
||||
if ( may_umount(mnt) == 0 ) {
|
||||
if ( may_umount(mnt) ) {
|
||||
mntput(mnt);
|
||||
DPRINTK(("autofs: signaling expire on %s\n", ent->name));
|
||||
return ent; /* Expirable! */
|
||||
|
|
|
|||
Loading…
Reference in a new issue