git: sys/vfs/hammer: Define and use HAMMER_ENCODE() on blockmap formatting
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Mon Jul 6 08:43:23 PDT 2015
commit cbf2551d357e12f6542918b590bebd3f21c147b5
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Mon Jul 6 18:57:29 2015 +0900
sys/vfs/hammer: Define and use HAMMER_ENCODE() on blockmap formatting
- Add HAMMER_ENCODE() which is a generic version of existing
macros HAMMER_ENCODE_{RAW_VOLUME|RAW_BUFFER|FREEMAP}().
- Use HAMMER_ENCODE() in format_blockmap() in userspace when newfs
initializes blockmap offsets. This is better in the sense that
the macro hides internal of hammer's storage address space format,
and gets rid of bitwise operations that make assumption on format.
Summary of changes:
sbin/hammer/ondisk.c | 3 +--
sys/vfs/hammer/hammer_disk.h | 5 +++++
2 files changed, 6 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cbf2551d357e12f6542918b590bebd3f21c147b5
--
DragonFly BSD source repository
More information about the Commits
mailing list