]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs4/root.c
[PATCH] autofs4: autofs4_follow_link false negative fix
[linux-2.6-omap-h63xx.git] / fs / autofs4 / root.c
index 27e17f96cada446d0858405493b46203fd0d57c3..0ec24835239f59a9b0b69e83f2abb48b4acd9b1e 100644 (file)
@@ -359,7 +359,7 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
         * don't try to mount it again.
         */
        spin_lock(&dcache_lock);
-       if (!d_mountpoint(dentry) && list_empty(&dentry->d_subdirs)) {
+       if (!d_mountpoint(dentry) && __simple_empty(dentry)) {
                spin_unlock(&dcache_lock);
 
                status = try_to_fill_dentry(dentry, 0);