git: sys/vfs/hammer: Add hammer_node_max_elements()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jul 10 10:42:04 PDT 2015


commit 36211fc612d412f6cd1fb69dd094f2fa9c0b6e6c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Jul 10 23:07:28 2015 +0900

    sys/vfs/hammer: Add hammer_node_max_elements()
    
    - Add inline function hammer_node_max_elements() and make
      it available to userspace.
    
    - The relation between btree node type and # of elements is
      a part of ondisk definition, so it's better to have it in
      the same header file.

Summary of changes:
 sbin/hammer/cmd_show.c        |  4 ++--
 sys/vfs/hammer/hammer_btree.c | 11 ++++++-----
 sys/vfs/hammer/hammer_btree.h | 13 +++++++++++++
 3 files changed, 21 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/36211fc612d412f6cd1fb69dd094f2fa9c0b6e6c


-- 
DragonFly BSD source repository



More information about the Commits mailing list