X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fautofs4%2Froot.c;h=0ec24835239f59a9b0b69e83f2abb48b4acd9b1e;hb=be3ca7fecb1a9903c6253f49aec0af2a0f3a04e4;hp=27e17f96cada446d0858405493b46203fd0d57c3;hpb=5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62;p=linux-2.6-omap-h63xx.git diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 27e17f96cad..0ec24835239 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -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);