summaryrefslogtreecommitdiff
path: root/fs/autofs4/symlink.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2009-12-16 00:45:48 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 15:19:58 (GMT)
commitc42c7f7e698fa888abbd50eb9c8e328fff68914f (patch)
treecdcc21d21cdf2f695cba0298db75c609060e87e6 /fs/autofs4/symlink.c
parent6510c9d8595adcee2b0dc86408bc432a8dd7d652 (diff)
downloadlinux-fsl-qoriq-c42c7f7e698fa888abbd50eb9c8e328fff68914f.tar.xz
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 <raven@themaw.net> Cc: Sage Weil <sage@newdream.net> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Andreas Dilger <adilger@sun.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Yehuda Saheh <yehuda@newdream.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs4/symlink.c')
0 files changed, 0 insertions, 0 deletions