diff options
author | Chao Yu <chao@kernel.org> | 2022-03-17 16:33:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-03-17 23:48:03 -0700 |
commit | c86868bbc22be9487d10d3c6336dd8ccb49e8a62 (patch) | |
tree | b03dd631b3a1461d7bfb5aa2b592511910138135 /fs/f2fs | |
parent | d98af5f4552058a5c22030641ef79cee92c61f54 (diff) | |
download | linux-c86868bbc22be9487d10d3c6336dd8ccb49e8a62.tar.gz linux-c86868bbc22be9487d10d3c6336dd8ccb49e8a62.tar.bz2 linux-c86868bbc22be9487d10d3c6336dd8ccb49e8a62.zip |
f2fs: initialize sbi->gc_mode explicitly
It needs to initialized sbi->gc_mode to GC_NORMAL explicitly.
Signed-off-by: Chao Yu <chao.yu@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 4b570b5c2674..9176597fdf94 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3579,6 +3579,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi) F2FS_NODE_INO(sbi) = le32_to_cpu(raw_super->node_ino); F2FS_META_INO(sbi) = le32_to_cpu(raw_super->meta_ino); sbi->cur_victim_sec = NULL_SECNO; + sbi->gc_mode = GC_NORMAL; sbi->next_victim_seg[BG_GC] = NULL_SEGNO; sbi->next_victim_seg[FG_GC] = NULL_SEGNO; sbi->max_victim_search = DEF_MAX_VICTIM_SEARCH; |