git: sys/vfs/hammer: Add HAMMER_BLOCKMAP_LAYER[12]_INDEX()
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jul 18 11:26:07 PDT 2015
commit f5b0d00fddff8f4f0181ecffecb49b725da0d656
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
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(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5b0d00fddff8f4f0181ecffecb49b725da0d656
--
DragonFly BSD source repository
More information about the Commits
mailing list