summaryrefslogtreecommitdiffstats
path: root/fs/autofs/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs/root.c')
-rw-r--r--fs/autofs/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs/root.c b/fs/autofs/root.c
index 35afe3cdc..1540ceda8 100644
--- a/fs/autofs/root.c
+++ b/fs/autofs/root.c
@@ -227,7 +227,7 @@ static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentr
* doesn't do the right thing for all system calls, but it should
* be OK for the operations we permit from an autofs.
*/
- if ( dentry->d_inode && list_empty(&dentry->d_hash) )
+ if ( dentry->d_inode && d_unhashed(dentry) )
return ERR_PTR(-ENOENT);
return NULL;