vfs: drop spurious cache_purge on rmdir
The removed directory gets cache_purged which is sufficient to remove any entries related to the parent. Note only tmpfs, ufs and zfs are patched.
This commit is contained in:
parent
703f3fafa5
commit
25fb30bd9a
@ -2332,8 +2332,6 @@ zfs_rmdir_(vnode_t *dvp, vnode_t *vp, const char *name, cred_t *cr)
|
||||
return (error);
|
||||
}
|
||||
|
||||
cache_purge(dvp);
|
||||
|
||||
error = zfs_link_destroy(dzp, name, zp, tx, ZEXISTS, NULL);
|
||||
|
||||
if (error == 0) {
|
||||
|
@ -1331,7 +1331,6 @@ tmpfs_rmdir(struct vop_rmdir_args *v)
|
||||
TMPFS_NODE_UNLOCK(dnode);
|
||||
|
||||
if (tmpfs_use_nc(dvp)) {
|
||||
cache_purge(dvp);
|
||||
cache_purge(vp);
|
||||
}
|
||||
|
||||
|
@ -2204,7 +2204,6 @@ ufs_rmdir(ap)
|
||||
softdep_revert_rmdir(dp, ip);
|
||||
goto out;
|
||||
}
|
||||
cache_purge(dvp);
|
||||
/*
|
||||
* The only stuff left in the directory is "." and "..". The "."
|
||||
* reference is inconsequential since we are quashing it. The soft
|
||||
|
Loading…
Reference in New Issue
Block a user