mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
pseudofs: use the vget_prep/vget_finish idiom
This commit is contained in:
parent
4e1262ac99
commit
2c2ef670a7
1 changed files with 2 additions and 2 deletions
|
|
@ -218,9 +218,9 @@ retry2:
|
|||
if (pvd2->pvd_pn == pn && pvd2->pvd_pid == pid &&
|
||||
pvd2->pvd_vnode->v_mount == mp) {
|
||||
vp = pvd2->pvd_vnode;
|
||||
VI_LOCK(vp);
|
||||
vs = vget_prep(vp);
|
||||
mtx_unlock(&pfs_vncache_mutex);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK) == 0) {
|
||||
if (vget_finish(vp, LK_EXCLUSIVE, vs) == 0) {
|
||||
++pfs_vncache_hits;
|
||||
vgone(*vpp);
|
||||
vput(*vpp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue