git: sys/vfs/hammer: Add hammer_is_zone2|direct_mapped_index()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Dec 3 09:02:00 PST 2015


commit f43eff17d5945f6be4e71a526acd319512c6c5d5
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Dec 3 21:43:15 2015 +0900

    sys/vfs/hammer: Add hammer_is_zone2|direct_mapped_index()
    
    No functional changes.
    
    Just makes the code a bit more readable than having bunch of
    assert(zone >= 8 && zone < 16)

Summary of changes:
 sbin/hammer/blockmap.c           |  2 +-
 sbin/hammer/cmd_blockmap.c       |  5 +----
 sbin/newfs_hammer/newfs_hammer.c |  5 +++--
 sys/vfs/hammer/hammer.h          |  2 +-
 sys/vfs/hammer/hammer_blockmap.c | 14 +++++++-------
 sys/vfs/hammer/hammer_disk.h     | 15 ++++++++++++---
 sys/vfs/hammer/hammer_ondisk.c   | 18 +++++-------------
 7 files changed, 30 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f43eff17d5945f6be4e71a526acd319512c6c5d5


-- 
DragonFly BSD source repository


More information about the Commits mailing list