• Ian Kent's avatar
    We unhash the dentry (in a subsequent patch) in ->d_revalidate() in order · 9a3b5dd5
    Ian Kent authored
    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: default avatarIan 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    9a3b5dd5
root.c 24.3 KB