HAMMER VFS - Add debugging for write I/O
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 10 Jan 2010 01:37:51 +0000 (17:37 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 10 Jan 2010 01:37:51 +0000 (17:37 -0800)
* vfs.hammer.debug_io=2 will kprintf() each write I/O

sys/vfs/hammer/hammer_io.c

index f7dd622..ad18127 100644 (file)
@@ -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.
         */