git: sbin/hammer: Move hammer_btree_cmp() to cmd_show.c

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


commit 28b9bac335cf6f1ad6d83be8f2c08af8a921afb3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 26 10:39:57 2016 +0900

    sbin/hammer: Move hammer_btree_cmp() to cmd_show.c
    
    This function isn't necessary in userspace unless a command wants
    to walk through the B-Tree. The only hammer command that needs to
    do this is hammer show, so make it a static function of hammer show
    just like other node/elm related functions are static.
    
    This is a copy-pasted function from sys/vfs/hammer/hammer_btree.c,
    but keep it copy-pasted code without having it as an static inline
    function in hammer_btree.h, as it has bunch of conditionals that
    make asm of a caller unreadable.

Summary of changes:
 sbin/hammer/cmd_show.c    | 41 ++++++++++++++++++++++++++++++++++++++++
 sbin/hammer/hammer_util.h |  1 -
 sbin/hammer/misc.c        | 48 -----------------------------------------------
 3 files changed, 41 insertions(+), 49 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/28b9bac335cf6f1ad6d83be8f2c08af8a921afb3


-- 
DragonFly BSD source repository



More information about the Commits mailing list