]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] autofs4: fix false negative return from expire
authorIan Kent <raven@themaw.net>
Mon, 27 Mar 2006 09:14:46 +0000 (01:14 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:39 +0000 (08:44 -0800)
commit1aff3c8b0511b5bb54acf7859e0c6ec9ae7287a9
treebe50f4c89a14240b568010da1b0ce3c182352afc
parent1ce12bad85863478619688c0c7363f93a9e5edb8
[PATCH] autofs4: fix false negative return from expire

Fix the case where an expire returns busy on a tree mount when it is in fact
not busy.  This case was overlooked when the patch to prevent the expiring
away of "scaffolding" directories for tree mounts was applied.

The problem arises when a tree of mounts is a member of a map with other keys.
 The current logic will not expire the tree if any other mount in the map is
busy.  The solution is to maintain a "minimum" use count for each autofs
dentry and compare this to the actual dentry usage count during expire.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/autofs_i.h
fs/autofs4/expire.c
fs/autofs4/inode.c
fs/autofs4/root.c