Move all block size reductions to shrink_block()
commit3b59bb24f977cde3f003ae1b82efd1907f65a989
authorPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 06:47:04 +0000 (17 08:47 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 06:47:04 +0000 (17 08:47 +0200)
tree02fe80d4884aa43b1f6449771c2c569f649b9d43
parentc2318fe53ee94b53af66710e3d8bccc3e19abec5
Move all block size reductions to shrink_block()

This gives us one place where the empty flag may have to be set. It
also means that kill_block_if_empty() can make a proper check for
empty blocks, i.e. one that is reliable even if the block has not
been just shrunk.

Signed-off-by: Petr Tesarik <petr@tesarici.cz>
libhed/file.c