]> Git Repo - linux.git/commit
autofs4: eliminate d_unhashed in path walk checks
authorIan Kent <[email protected]>
Wed, 16 Dec 2009 00:45:48 +0000 (16:45 -0800)
committerLinus Torvalds <[email protected]>
Wed, 16 Dec 2009 15:19:58 +0000 (07:19 -0800)
commitc42c7f7e698fa888abbd50eb9c8e328fff68914f
treecdcc21d21cdf2f695cba0298db75c609060e87e6
parent6510c9d8595adcee2b0dc86408bc432a8dd7d652
autofs4: eliminate d_unhashed in path walk checks

We unhash the dentry (in a subsequent patch) in ->d_revalidate() in order
to send mount requests to ->lookup().  But then we can not rely on
d_unhased() to give reliable results because it may be called at any time
by any code path.  The d_unhashed() function is used by __simple_empty()
in the path walking callbacks but autofs mount point dentrys should have
no directories at all so a list_empty() on d_subdirs should be (and is)
sufficient.

Signed-off-by: Ian Kent <[email protected]>
Cc: Sage Weil <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Andreas Dilger <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Yehuda Saheh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/autofs4/root.c
This page took 0.04906 seconds and 4 git commands to generate.