autofs4: correct offset mount expire check
commitbc9c4068388eea01d3b5da31016879f2341ecec5
authorIan Kent <raven@themaw.net>
Thu, 6 Nov 2008 20:53:22 +0000 (6 12:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Nov 2008 23:41:17 +0000 (6 15:41 -0800)
tree3ff09783f4d5e3d19d8e5bda9b63419991726939
parenteefc488f96cdde6e152b45675b50bf380b95d99f
autofs4: correct offset mount expire check

When checking a directory tree in autofs_tree_busy() we can incorrectly
decide that the tree isn't busy.  This happens for the case of an active
offset mount as autofs4_follow_mount() follows past the active offset
mount, which has an open file handle used for expires, causing the file
handle not to count toward the busyness check.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/expire.c