Add bio_ops->io_checkread and io_checkwrite - a read and write pre-check
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 7 Nov 2007 00:46:39 +0000 (00:46 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 7 Nov 2007 00:46:39 +0000 (00:46 +0000)
commit27bc0cb18e4510f5ecea108e1e3d57098cf7da2d
tree97011f3566a214a3c7e2f65945283f781b07fadb
parent66325755d594eb864f71814b12062aa154b5a2c4
Add bio_ops->io_checkread and io_checkwrite - a read and write pre-check
which gives HAMMER a chance to set B_LOCKED if the kernel wants to write out
a passively held buffer.

Change B_LOCKED semantics slightly.  B_LOCKED buffers will not be written
until B_LOCKED is cleared.  This allows HAMMER to hold off B_DELWRI writes
on passively held buffers.
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/kern/vfs_subr.c
sys/sys/buf.h
sys/sys/buf2.h
sys/sys/mount.h
sys/vfs/ufs/ffs_softdep.c