git: sys/vfs/hammer: Add HAMMER_BLOCKMAP_LAYER[12]_INDEX()

Tomohiro Kusumi tkusumi at
Sat Jul 18 11:26:07 PDT 2015

commit f5b0d00fddff8f4f0181ecffecb49b725da0d656
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Sun Jul 19 00:38:43 2015 +0900

    sys/vfs/hammer: Add HAMMER_BLOCKMAP_LAYER[12]_INDEX()
    - This commit adds HAMMER_BLOCKMAP_LAYER[12]_INDEX() which is
      /=sizeof(layer[12]) version of HAMMER_BLOCKMAP_LAYER[12]_OFFSET().
    - This is useful as it sometimes (the next commit, debugging, etc)
      wants to retrieve an index of layer1/2 instead of an offset.

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

DragonFly BSD source repository

More information about the Commits mailing list