git: sys/vfs/hammer: Make HAMMER_ENCODE() take zone index instead of base
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Fri Jul 17 09:50:03 PDT 2015
commit 6fdd989a6f172aa48cb67f9ea3621cc2923de159
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Wed Jul 15 08:18:38 2015 +0900
sys/vfs/hammer: Make HAMMER_ENCODE() take zone index instead of base
- HAMMER_ENCODE() macro added in cbf2551 should have taken zone index
for the first argument, instead of directly importing zone base
based code from format_blockmap().
- The zone base arg and other two args having overwrapped bits is
confusing, and not really good for anything. If zone base has non
zero for non-zone-bits then those bits should go to other two args.
- (format_blockmap() has been changed to take zone/offset instead of
the encoded one, but no external programs will need this function.
The same for the HAMMER_ENCODE() macro)
Summary of changes:
sbin/hammer/hammer_util.h | 2 +-
sbin/hammer/ondisk.c | 6 ++++--
sbin/newfs_hammer/newfs_hammer.c | 3 +--
sys/vfs/hammer/hammer_disk.h | 10 +++++-----
4 files changed, 11 insertions(+), 10 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6fdd989a6f172aa48cb67f9ea3621cc2923de159
--
DragonFly BSD source repository
More information about the Commits
mailing list