f2fs: check hot_data for roll-forward recovery
authorJaegeuk Kim <jaegeuk@kernel.org>
Sun, 13 Aug 2017 04:33:23 +0000 (21:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:22:11 +0000 (08:22 +0200)
commitcb14d4cebdb29df42c4a22ebe3fcf6097138663b
treee1b3d3db016fb41f3935189009498485d52404aa
parent96a069a6babb4a19eaaa6a7dd72943040f0a5848
f2fs: check hot_data for roll-forward recovery

commit 125c9fb1ccb53eb2ea9380df40f3c743f3fb2fed upstream.

We need to check HOT_DATA to truncate any previous data block when doing
roll-forward recovery.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/recovery.c