- In ffs_update() assert that either the vnode lock or the XLOCK is held.
This commit is contained in:
parent
44fa0fe4a2
commit
9765ac56e1
@ -84,6 +84,10 @@ ffs_update(vp, waitfor)
|
||||
struct inode *ip;
|
||||
int error;
|
||||
|
||||
#ifdef DEBUG_VFS_LOCKS
|
||||
if ((vp->v_iflag & VI_XLOCK) == 0)
|
||||
ASSERT_VOP_LOCKED(vp, "ffs_update");
|
||||
#endif
|
||||
ufs_itimes(vp);
|
||||
ip = VTOI(vp);
|
||||
if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user