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