git: sbin/hammer: Split alloc_bigblock() into two functions [2/2]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Nov 7 05:06:30 PST 2016


commit 9dfd60d11f7c9f12d3c0efa5e6fb0e2b1a67c4d3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Nov 6 23:29:54 2016 +0900

    sbin/hammer: Split alloc_bigblock() into two functions [2/2]
    
    This function is currently only used by zone-3, but it's actually
    only usable by zone-3 from the way it's implemented, so rename it
    to alloc_undo_bigblock() and get rid of zone argument.
    
    The way blockmap offsets (in root volume) get updated for zone-3
    differs from other zones like 8/9/10/11, and this function which
    doesn't update blockmap offsets on allocation only works against
    zone-3.

Summary of changes:
 sbin/hammer/blockmap.c    | 23 ++++++++++++++---------
 sbin/hammer/hammer_util.h |  2 +-
 sbin/hammer/ondisk.c      |  3 +--
 3 files changed, 16 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9dfd60d11f7c9f12d3c0efa5e6fb0e2b1a67c4d3


-- 
DragonFly BSD source repository


More information about the Commits mailing list