sbin/hammer: Make alloc_btree_element() take address of buffer pointer
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 29 Mar 2015 13:15:12 +0000 (22:15 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 1 Apr 2015 21:09:32 +0000 (06:09 +0900)
commit4a2cb8bb63fa40317465e491b7c1971006e7757e
tree2d23da4f5f4564176075f57c3e4c4f9d9a4ddd3f
parent0ba28897abadbfe74d80b2d65daf57cc386fe199
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).
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c