Simplify undirty_blocks()
commitc2318fe53ee94b53af66710e3d8bccc3e19abec5
authorPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 05:04:23 +0000 (17 07:04 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 05:07:35 +0000 (17 07:07 +0200)
treec73a8115140ff2e2aec5948b4515fbb224bcf053
parent7f5d48e9437e500218b777841dc035d4f2e397e4
Simplify undirty_blocks()

Since all blocks are killed in the end, there is no need for the
first loop:

  - data blocks are already converted to virtual by kill_block()
  - physical position can be updated as we go

It is tempting to reinitialize the file from scratch, but first, it
would be difficult to preserve existing cursors, and second,
initialization may fail while allocating new blocks.

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