git: sbin/hammer: Make alloc_btree_element() take address of buffer pointer

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Apr 1 14:32:34 PDT 2015


commit 4a2cb8bb63fa40317465e491b7c1971006e7757e
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Mar 29 22:15:12 2015 +0900

    sbin/hammer: Make alloc_btree_element() take address of buffer pointer
    
    - Make alloc_btree_element() take struct buffer_info** as the second
      arg so a caller can take control of the buffer, in addition to
      retrieving ondisk data. This is the way other ondisk buffer apis
      are made (even if the caller doesn't need to explicitly release the
      buffer).

Summary of changes:
 sbin/hammer/hammer_util.h        | 3 ++-
 sbin/hammer/ondisk.c             | 9 ++++-----
 sbin/newfs_hammer/newfs_hammer.c | 3 ++-
 3 files changed, 8 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4a2cb8bb63fa40317465e491b7c1971006e7757e


-- 
DragonFly BSD source repository



More information about the Commits mailing list