Jaegeuk Kim c79b7ff1d3 f2fs: fix wrong written_valid_blocks counting
Previously, written_valid_blocks was got by ckpt->valid_block_count. But if
the last checkpoint has some NEW_ADDR due to power-cut, we can get wrong value.
Fix it to get the number from actual written block count from sit entries.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2016-11-25 10:15:58 -08:00
..
2016-09-14 16:52:36 -07:00
2016-11-25 10:15:50 -08:00
2016-11-23 12:11:12 -08:00
2016-11-25 10:15:57 -08:00
2016-11-25 10:15:57 -08:00
2016-11-25 10:15:57 -08:00
2016-11-23 12:11:00 -08:00
2016-11-25 10:15:13 -08:00
2016-06-07 13:41:38 -06:00