git: sbin/hammer: Rename alloc_btree_element() to alloc_btree_node()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Oct 6 14:28:55 PDT 2016


commit 73eb8826d5aeb338045fe64ec37fb25ba0ec115a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 26 10:22:50 2016 +0900

    sbin/hammer: Rename alloc_btree_element() to alloc_btree_node()
    
    Make it clear that it's allocating a 4KB node, but not elm part.
    Also change return type to hammer_node_ondisk_t.
    Don't need to cast to void* on returning.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/73eb8826d5aeb338045fe64ec37fb25ba0ec115a


-- 
DragonFly BSD source repository



More information about the Commits mailing list