Skip to content

Commit 2830dd2

Browse files
chaseyugregkh
authored andcommitted
f2fs: atgc: fix to set default age threshold
[ Upstream commit 89e53ff ] Default age threshold value is missed to set, fix it. Fixes: 093749e ("f2fs: support age threshold based garbage collection") Reported-by: Sahitya Tummala <stummala@codeaurora.org> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f6ec306 commit 2830dd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/f2fs/gc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,7 @@ static void init_atgc_management(struct f2fs_sb_info *sbi)
18011801
am->candidate_ratio = DEF_GC_THREAD_CANDIDATE_RATIO;
18021802
am->max_candidate_count = DEF_GC_THREAD_MAX_CANDIDATE_COUNT;
18031803
am->age_weight = DEF_GC_THREAD_AGE_WEIGHT;
1804+
am->age_threshold = DEF_GC_THREAD_AGE_THRESHOLD;
18041805
}
18051806

18061807
void f2fs_build_gc_manager(struct f2fs_sb_info *sbi)

0 commit comments

Comments
 (0)