mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Move ASSERT_VOP_LOCKED to top of ufs_vinit() as it should be true
when the function is entered. Suggested by: kib
This commit is contained in:
parent
1c521f70d4
commit
751ae98144
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342610
|
@ -2515,6 +2515,7 @@ ufs_vinit(mntp, fifoops, vpp)
|
|||
struct vnode *vp;
|
||||
|
||||
vp = *vpp;
|
||||
ASSERT_VOP_LOCKED(vp, "ufs_vinit");
|
||||
ip = VTOI(vp);
|
||||
vp->v_type = IFTOVT(ip->i_mode);
|
||||
/*
|
||||
|
@ -2524,7 +2525,6 @@ ufs_vinit(mntp, fifoops, vpp)
|
|||
return (EINVAL);
|
||||
if (vp->v_type == VFIFO)
|
||||
vp->v_op = fifoops;
|
||||
ASSERT_VOP_LOCKED(vp, "ufs_vinit");
|
||||
if (ip->i_number == UFS_ROOTINO)
|
||||
vp->v_vflag |= VV_ROOT;
|
||||
*vpp = vp;
|
||||
|
|
Loading…
Reference in a new issue