diff options
Diffstat (limited to 'fs/exofs/namei.c')
-rw-r--r-- | fs/exofs/namei.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/exofs/namei.c b/fs/exofs/namei.c index 4d70db110cfc..0697175d1a38 100644 --- a/fs/exofs/namei.c +++ b/fs/exofs/namei.c | |||
@@ -227,6 +227,8 @@ static int exofs_rmdir(struct inode *dir, struct dentry *dentry) | |||
227 | struct inode *inode = dentry->d_inode; | 227 | struct inode *inode = dentry->d_inode; |
228 | int err = -ENOTEMPTY; | 228 | int err = -ENOTEMPTY; |
229 | 229 | ||
230 | dentry_unhash(dentry); | ||
231 | |||
230 | if (exofs_empty_dir(inode)) { | 232 | if (exofs_empty_dir(inode)) { |
231 | err = exofs_unlink(dir, dentry); | 233 | err = exofs_unlink(dir, dentry); |
232 | if (!err) { | 234 | if (!err) { |