git: sys/vfs/hammer: Add hammer_buf_peek_io()/hammer_buf_attach_io()

Tomohiro Kusumi tkusumi at
Mon Dec 7 09:58:28 PST 2015

commit 0ae73f4335b9dde5cec101b224ed2115373035a6
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Tue Dec 8 00:29:49 2015 +0900

    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.

Summary of changes:
 sys/vfs/hammer/hammer.h    | 16 ++++++++++++++++
 sys/vfs/hammer/hammer_io.c | 18 +++++++-----------
 2 files changed, 23 insertions(+), 11 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list