vfs: push dentry_unhash on rmdir into file systems
[pandora-kernel.git] / fs / exofs / namei.c
index 4d70db1..0697175 100644 (file)
@@ -227,6 +227,8 @@ static int exofs_rmdir(struct inode *dir, struct dentry *dentry)
        struct inode *inode = dentry->d_inode;
        int err = -ENOTEMPTY;
 
+       dentry_unhash(dentry);
+
        if (exofs_empty_dir(inode)) {
                err = exofs_unlink(dir, dentry);
                if (!err) {