sbin/hammer: Move hammer_btree_cmp() to cmd_show.c
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 26 Sep 2016 01:39:57 +0000 (10:39 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 6 Oct 2016 20:17:35 +0000 (05:17 +0900)
commit28b9bac335cf6f1ad6d83be8f2c08af8a921afb3
tree28f7d0d5299e08142cf0ef06e14414e50c60e65c
parent73eb8826d5aeb338045fe64ec37fb25ba0ec115a
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.
sbin/hammer/cmd_show.c
sbin/hammer/hammer_util.h
sbin/hammer/misc.c