sys/vfs/hammer: Make HAMMER_ENCODE() take zone index instead of base
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 14 Jul 2015 23:18:38 +0000 (08:18 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 17 Jul 2015 16:35:40 +0000 (01:35 +0900)
commit6fdd989a6f172aa48cb67f9ea3621cc2923de159
tree64ed9083bf2251afa562fb108e2a32c799b3c1ad
parentd0ea2047454e0d94be28450a43750b21a1515b5b
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)
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c
sys/vfs/hammer/hammer_disk.h