sys/vfs/hammer: Add hammer_buf_peek_io()/hammer_buf_attach_io()
commit0ae73f4335b9dde5cec101b224ed2115373035a6
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 7 Dec 2015 15:29:49 +0000 (8 00:29 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 7 Dec 2015 17:41:52 +0000 (8 02:41 +0900)
tree67d5b659dc8669df1de51ba642340ecd5914b308
parent71199586f15f7bc6df2cc94cb1282bf55440e7b1
sys/vfs/hammer: Add hammer_buf_peek_io()/hammer_buf_attach_io()

HAMMER doesn't really use bp->b_dep as a list, because it only
has one io entry linked to it (buf and io are 1:1).

Add hammer_buf_peek_io() and hammer_buf_attach_io() to hide the
implication of list (that isn't really a list). These functions
also hide bunch of void* casts between worklist and hammer_io.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_io.c