mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
vfs: push dentry_unhash on rmdir into file systems
Only a few file systems need this. Start by pushing it down into each fs rmdir method (except gfs2 and xfs) so it can be dealt with on a per-fs basis. This does not change behavior for any in-tree file systems. Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
64252c75a2
commit
79bf7c732b
37 changed files with 78 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue