zfs: use cache_rename
This commit is contained in:
parent
dd28b379cb
commit
a4bcd20486
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366598
@ -4165,10 +4165,7 @@ zfs_rename_(vnode_t *sdvp, vnode_t **svpp, struct componentname *scnp,
|
||||
}
|
||||
}
|
||||
if (error == 0) {
|
||||
cache_purge(*svpp);
|
||||
if (*tvpp != NULL)
|
||||
cache_purge(*tvpp);
|
||||
cache_purge_negative(tdvp);
|
||||
cache_rename(sdvp, *svpp, tdvp, *tvpp, scnp, tcnp);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user