zfs: use cache_rename
This commit is contained in:
parent
dd28b379cb
commit
a4bcd20486
@ -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