mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
zfs: use cache_rename
This commit is contained in:
parent
dd28b379cb
commit
a4bcd20486
1 changed files with 1 additions and 4 deletions
|
|
@ -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 a new issue