[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 <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -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! */
|
||||
|
Reference in New Issue
Block a user