Skip to content

Commit 53e5f7b

Browse files
Jaegeuk Kimgregkh
authored andcommitted
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>
1 parent be99948 commit 53e5f7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/recovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int check_index_in_prev_nodes(struct f2fs_sb_info *sbi,
276276
return 0;
277277

278278
/* Get the previous summary */
279-
for (i = CURSEG_WARM_DATA; i <= CURSEG_COLD_DATA; i++) {
279+
for (i = CURSEG_HOT_DATA; i <= CURSEG_COLD_DATA; i++) {
280280
struct curseg_info *curseg = CURSEG_I(sbi, i);
281281
if (curseg->segno == segno) {
282282
sum = curseg->sum_blk->entries[blkoff];

0 commit comments

Comments
 (0)