From 6367d0f9e6eb5da3982f7a502d5c999407a6101b Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 9 Jan 2010 17:37:51 -0800 Subject: [PATCH] HAMMER VFS - Add debugging for write I/O * vfs.hammer.debug_io=2 will kprintf() each write I/O --- sys/vfs/hammer/hammer_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/vfs/hammer/hammer_io.c b/sys/vfs/hammer/hammer_io.c index f7dd622df9..ad1812780c 100644 --- a/sys/vfs/hammer/hammer_io.c +++ b/sys/vfs/hammer/hammer_io.c @@ -552,6 +552,9 @@ hammer_io_flush(struct hammer_io *io, int reclaim) hammer_io_clear_modify(io, 0); hammer_unref(&io->lock); + if (hammer_debug_io & 0x0002) + kprintf("hammer io_write %016jx\n", bp->b_bio1.bio_offset); + /* * Transfer ownership to the kernel and initiate I/O. */ -- 2.41.0