Loading fs/f2fs/segment.c +7 −3 Original line number Original line Diff line number Diff line Loading @@ -1186,6 +1186,7 @@ static int read_normal_summaries(struct f2fs_sb_info *sbi, int type) static int restore_curseg_summaries(struct f2fs_sb_info *sbi) static int restore_curseg_summaries(struct f2fs_sb_info *sbi) { { int type = CURSEG_HOT_DATA; int type = CURSEG_HOT_DATA; int err; if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_COMPACT_SUM_FLAG)) { if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_COMPACT_SUM_FLAG)) { /* restore for compacted data summary */ /* restore for compacted data summary */ Loading @@ -1194,9 +1195,12 @@ static int restore_curseg_summaries(struct f2fs_sb_info *sbi) type = CURSEG_HOT_NODE; type = CURSEG_HOT_NODE; } } for (; type <= CURSEG_COLD_NODE; type++) for (; type <= CURSEG_COLD_NODE; type++) { if (read_normal_summaries(sbi, type)) err = read_normal_summaries(sbi, type); return -EINVAL; if (err) return err; } return 0; return 0; } } Loading Loading
fs/f2fs/segment.c +7 −3 Original line number Original line Diff line number Diff line Loading @@ -1186,6 +1186,7 @@ static int read_normal_summaries(struct f2fs_sb_info *sbi, int type) static int restore_curseg_summaries(struct f2fs_sb_info *sbi) static int restore_curseg_summaries(struct f2fs_sb_info *sbi) { { int type = CURSEG_HOT_DATA; int type = CURSEG_HOT_DATA; int err; if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_COMPACT_SUM_FLAG)) { if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_COMPACT_SUM_FLAG)) { /* restore for compacted data summary */ /* restore for compacted data summary */ Loading @@ -1194,9 +1195,12 @@ static int restore_curseg_summaries(struct f2fs_sb_info *sbi) type = CURSEG_HOT_NODE; type = CURSEG_HOT_NODE; } } for (; type <= CURSEG_COLD_NODE; type++) for (; type <= CURSEG_COLD_NODE; type++) { if (read_normal_summaries(sbi, type)) err = read_normal_summaries(sbi, type); return -EINVAL; if (err) return err; } return 0; return 0; } } Loading