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:
Mateusz Guzik 2020-10-23 15:50:49 +00:00
parent 703f3fafa5
commit 25fb30bd9a
3 changed files with 0 additions and 4 deletions

View File

@ -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) {

View File

@ -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);
}

View File

@ -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