sbin/hammer: Split alloc_bigblock() into two functions [2/2]
commit9dfd60d11f7c9f12d3c0efa5e6fb0e2b1a67c4d3
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 6 Nov 2016 14:29:54 +0000 (6 23:29 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 7 Nov 2016 12:13:02 +0000 (7 21:13 +0900)
treeb8e23b87952898a4ccb645546c7e8bbf2d215c7e
parent30e8ae555bb8ee5396b75c96cfc8a9e69265aee6
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.
sbin/hammer/blockmap.c
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c