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

This commit is contained in:
Jeff Roberson 2003-10-05 09:39:02 +00:00
parent dcf59a59fc
commit cffa37d466

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)