vfs: push dentry_unhash on rmdir into file systems
[pandora-kernel.git] / fs / coda / dir.c
index 2b8dae4..9f72b75 100644 (file)
@@ -336,6 +336,8 @@ static int coda_rmdir(struct inode *dir, struct dentry *de)
        int len = de->d_name.len;
        int error;
 
+       dentry_unhash(de);
+
        error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len);
        if (!error) {
                /* VFS may delete the child */