summaryrefslogtreecommitdiffstats
path: root/fs/umsdos/rdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/umsdos/rdir.c')
-rw-r--r--fs/umsdos/rdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/umsdos/rdir.c b/fs/umsdos/rdir.c
index d05dfed73..8c71dd727 100644
--- a/fs/umsdos/rdir.c
+++ b/fs/umsdos/rdir.c
@@ -157,7 +157,7 @@ static int UMSDOS_rrmdir ( struct inode *dir, struct dentry *dentry)
goto out;
ret = -EBUSY;
- if (!list_empty(&dentry->d_hash))
+ if (!d_unhashed(dentry))
goto out;
ret = msdos_rmdir (dir, dentry);