insmntque_stddtr() clears vp->v_data and resets vp->v_op to
dead_vnodeops before calling vgone(). Revert r189706 and corresponding part of the r186560. Noted and reviewed by: tegge Approved by: des (pseudofs part) MFC after: 3 days
This commit is contained in:
parent
5e65224daf
commit
6cc745d2d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196920
@ -193,6 +193,7 @@ pfs_vncache_alloc(struct mount *mp, struct vnode **vpp,
|
||||
vn_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
|
||||
error = insmntque(*vpp, mp);
|
||||
if (error != 0) {
|
||||
free(pvd, M_PFSVNCACHE);
|
||||
*vpp = NULLVP;
|
||||
return (error);
|
||||
}
|
||||
|
@ -1467,6 +1467,7 @@ ffs_vgetf(mp, ino, flags, vpp, ffs_flags)
|
||||
vp->v_vflag |= VV_FORCEINSMQ;
|
||||
error = insmntque(vp, mp);
|
||||
if (error != 0) {
|
||||
uma_zfree(uma_inode, ip);
|
||||
*vpp = NULL;
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user