Skip to content

Commit

Permalink
autofs4: fix incorrect return in autofs4_mount_busy()
Browse files Browse the repository at this point in the history
Fix an obvious incorrect return status in autofs4_mount_busy().

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ian Kent authored and Linus Torvalds committed May 2, 2009
1 parent bc43f75 commit a8985f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/autofs4/expire.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry)
* Otherwise it's an offset mount and we need to check
* if we can umount its mount, if there is one.
*/
if (!d_mountpoint(dentry))
if (!d_mountpoint(dentry)) {
status = 0;
goto done;
}
}

/* Update the expiry counter if fs is busy */
Expand Down

0 comments on commit a8985f3

Please sign in to comment.