Skip to content

Commit c86868b

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: initialize sbi->gc_mode explicitly
It needs to initialized sbi->gc_mode to GC_NORMAL explicitly. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent d98af5f commit c86868b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3579,6 +3579,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
35793579
F2FS_NODE_INO(sbi) = le32_to_cpu(raw_super->node_ino);
35803580
F2FS_META_INO(sbi) = le32_to_cpu(raw_super->meta_ino);
35813581
sbi->cur_victim_sec = NULL_SECNO;
3582+
sbi->gc_mode = GC_NORMAL;
35823583
sbi->next_victim_seg[BG_GC] = NULL_SEGNO;
35833584
sbi->next_victim_seg[FG_GC] = NULL_SEGNO;
35843585
sbi->max_victim_search = DEF_MAX_VICTIM_SEARCH;

0 commit comments

Comments
 (0)