diff options
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 27e17f96cada..0ec24835239f 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) | |||
359 | * don't try to mount it again. | 359 | * don't try to mount it again. |
360 | */ | 360 | */ |
361 | spin_lock(&dcache_lock); | 361 | spin_lock(&dcache_lock); |
362 | if (!d_mountpoint(dentry) && list_empty(&dentry->d_subdirs)) { | 362 | if (!d_mountpoint(dentry) && __simple_empty(dentry)) { |
363 | spin_unlock(&dcache_lock); | 363 | spin_unlock(&dcache_lock); |
364 | 364 | ||
365 | status = try_to_fill_dentry(dentry, 0); | 365 | status = try_to_fill_dentry(dentry, 0); |