NetBSD/sys/ufs/ffs
thorpej 11afd11faa Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*()
calls to ensure that the vnode lock state is as expected when the VOP
call is made.  Modify vnode_if.src to set the expected state according
to the documenting lock table for each VOP.  Modify vnode_if.sh to emit
the checks.

Notes:
- The checks are only performed if the vnode has the VLOCKSWORK bit
  set.  Some file systems (e.g. specfs) don't even bother with vnode
  locks, so of course the checks will fail.
- We can't actually run with VNODE_LOCKDEBUG because there are so many
  vnode locking problems, not the least of which is the "use SHARED for
  VOP_READ()" issue, which screws things up for the entire call chain.

Inspired by similar changes in OpenBSD, but implemented differently.
2004-09-21 03:10:35 +00:00
..
ffs_alloc.c While creating a snapshot inodes must be freed from the 2004-08-29 10:13:48 +00:00
ffs_appleufs.c
ffs_balloc.c In the indirect block unwind case, we only need to do the synchronous writes 2004-08-14 01:30:56 +00:00
ffs_bswap.c Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00
ffs_extern.h While creating a snapshot inodes must be freed from the 2004-08-29 10:13:48 +00:00
ffs_inode.c Don't write out the extra zero pages with PGO_SYNCIO. We start an asynchronous 2004-08-15 19:01:16 +00:00
ffs_snapshot.c There's no need to pass a proc value when using UIO_SYSSPACE with 2004-09-17 14:11:20 +00:00
ffs_snapshot.stub.c Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00
ffs_softdep.c While creating a snapshot inodes must be freed from the 2004-08-29 10:13:48 +00:00
ffs_softdep.stub.c
ffs_subr.c
ffs_tables.c
ffs_vfsops.c Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
ffs_vnops.c
fs.h Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00
Makefile
softdep.h