diff options
author | Ian Kent <raven@themaw.net> | 2006-03-27 11:14:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 18:44:40 +0200 |
commit | e3474a8eb38e48dea6690d1fabd75f3c7fd2f93f (patch) | |
tree | 0eb85dea5d7ae7bab9e22b139f5757c67294402e /fs/autofs4/root.c | |
parent | [PATCH] autofs4: rename simple_empty_nolock function (diff) | |
download | linux-e3474a8eb38e48dea6690d1fabd75f3c7fd2f93f.tar.xz linux-e3474a8eb38e48dea6690d1fabd75f3c7fd2f93f.zip |
[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>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index dcd4802a5d5f..26eb1f024866 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -699,7 +699,7 @@ static inline int autofs4_ask_umount(struct vfsmount *mnt, int __user *p) { int status = 0; - if (may_umount(mnt) == 0) + if (may_umount(mnt)) status = 1; DPRINTK("returning %d", status); |