summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-05 09:39:02 +0000
committerjeff <jeff@FreeBSD.org>2003-10-05 09:39:02 +0000
commit9765ac56e13d7ca7f8f4c7dcc96263008cc786f5 (patch)
tree4a4371e4feb3ab7040cb496d09aaa639aa0342ba /sys/ufs
parent44fa0fe4a22addde4c11acaf13d43cae411409e1 (diff)
downloadFreeBSD-src-9765ac56e13d7ca7f8f4c7dcc96263008cc786f5.zip
FreeBSD-src-9765ac56e13d7ca7f8f4c7dcc96263008cc786f5.tar.gz
- In ffs_update() assert that either the vnode lock or the XLOCK is held.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 1a2ed44..db90e4a 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -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)
OpenPOWER on IntegriCloud