Skip to content

Commit f88c790

Browse files
Sheng YongJaegeuk Kim
authored andcommitted
f2fs: clear SBI_POR_DOING before initing inmem curseg
SBI_POR_DOING can be cleared after recovery is completed, so that changes made before recovery can be persistent, and subsequent errors can be recorded into cp/sb. Signed-off-by: Song Feng <songfeng@oppo.com> Signed-off-by: Yongpeng Yang <yangyongpeng1@oppo.com> Signed-off-by: Sheng Yong <shengyong@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 1015035 commit f88c790

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/f2fs/super.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4784,13 +4784,13 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
47844784
if (err)
47854785
goto free_meta;
47864786

4787+
/* f2fs_recover_fsync_data() cleared this already */
4788+
clear_sbi_flag(sbi, SBI_POR_DOING);
4789+
47874790
err = f2fs_init_inmem_curseg(sbi);
47884791
if (err)
47894792
goto sync_free_meta;
47904793

4791-
/* f2fs_recover_fsync_data() cleared this already */
4792-
clear_sbi_flag(sbi, SBI_POR_DOING);
4793-
47944794
if (test_opt(sbi, DISABLE_CHECKPOINT)) {
47954795
err = f2fs_disable_checkpoint(sbi);
47964796
if (err)

0 commit comments

Comments
 (0)