zfs: use cache_rename

This commit is contained in:
Mateusz Guzik 2020-10-10 04:18:49 +00:00
parent dd28b379cb
commit a4bcd20486
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366598

View File

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