git: sys/vfs/hammer: Cast HAMMER_BLOCKMAP_LAYER1|2_INDEX macros to int

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Dec 2 04:52:14 PST 2015


commit e212455612b17e5de1a30a685560169c3794035a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Dec 2 02:06:32 2015 +0900

    sys/vfs/hammer: Cast HAMMER_BLOCKMAP_LAYER1|2_INDEX macros to int
    
    This commit does the same as 37fa1bc7 for INDEX macros.
    
    RADIX macro is how many layer entries a big-block can hold,
    INDEX macro is an index of layer entry for the given offset.
    (i.e. Maximum INDEX equals (RADIX - 1))

Summary of changes:
 sbin/hammer/cmd_blockmap.c   | 2 +-
 sbin/hammer/cmd_show.c       | 2 +-
 sbin/hammer/misc.c           | 4 ++--
 sys/vfs/hammer/hammer_disk.h | 8 ++++----
 4 files changed, 8 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e212455612b17e5de1a30a685560169c3794035a


-- 
DragonFly BSD source repository


More information about the Commits mailing list