- In ffs_update() assert that either the vnode lock or the XLOCK is held.

This commit is contained in:
jeff 2003-10-05 09:39:02 +00:00
parent 44fa0fe4a2
commit 9765ac56e1

View File

@ -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)