diff options
Diffstat (limited to 'fs/autofs4')
-rw-r--r-- | fs/autofs4/expire.c | 2 | ||||
-rw-r--r-- | fs/autofs4/root.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c index 6ae2fc8233ff..02a218fbde5f 100644 --- a/fs/autofs4/expire.c +++ b/fs/autofs4/expire.c | |||
@@ -64,7 +64,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry) | |||
64 | goto done; | 64 | goto done; |
65 | 65 | ||
66 | /* Update the expiry counter if fs is busy */ | 66 | /* Update the expiry counter if fs is busy */ |
67 | if (may_umount_tree(mnt)) { | 67 | if (!may_umount_tree(mnt)) { |
68 | struct autofs_info *ino = autofs4_dentry_ino(top); | 68 | struct autofs_info *ino = autofs4_dentry_ino(top); |
69 | ino->last_used = jiffies; | 69 | ino->last_used = jiffies; |
70 | goto done; | 70 | goto done; |
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) | |||
699 | { | 699 | { |
700 | int status = 0; | 700 | int status = 0; |
701 | 701 | ||
702 | if (may_umount(mnt) == 0) | 702 | if (may_umount(mnt)) |
703 | status = 1; | 703 | status = 1; |
704 | 704 | ||
705 | DPRINTK("returning %d", status); | 705 | DPRINTK("returning %d", status); |