git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfs: push dentry_unhash on rmdir into file systems
[pandora-kernel.git]
/
fs
/
hfs
/
dir.c
diff --git
a/fs/hfs/dir.c
b/fs/hfs/dir.c
index
b4d70b1
..
616cfe0
100644
(file)
--- a/
fs/hfs/dir.c
+++ b/
fs/hfs/dir.c
@@
-253,6
+253,9
@@
static int hfs_remove(struct inode *dir, struct dentry *dentry)
struct inode *inode = dentry->d_inode;
int res;
+ if (S_ISDIR(inode->i_mode))
+ dentry_unhash(dentry);
+
if (S_ISDIR(inode->i_mode) && inode->i_size != 2)
return -ENOTEMPTY;
res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name);