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

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Dec 1 07:24:02 PST 2015


commit 37fa1bc7f8b3c84a0f74952291352051af180b50
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Dec 1 22:25:07 2015 +0900

    sys/vfs/hammer: Cast HAMMER_BLOCKMAP_RADIX1|2 macros to int
    
    RADIX macros represent how many layer1/2 entries (32/16 bytes)
    a 8MB big-block can hold, but these aren't zone-x offset.
    
    These are typicaly used as an index of array where each entry
    is a data structure that corresponds to layer1/2 entry,
    therefore it makes sense to cast these macros to int.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/37fa1bc7f8b3c84a0f74952291352051af180b50


-- 
DragonFly BSD source repository



More information about the Commits mailing list