summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorYonggil Song <yonggil.song@samsung.com>2022-11-22 18:03:20 +0900
committerJaegeuk Kim <jaegeuk@kernel.org>2022-11-28 12:49:00 -0800
commite219aecfd4b766c4e878a3769057e9809f7fcadc (patch)
treeab8aebaec6fac6e7819187c9c1a503a35ca47626 /tools/perf/scripts/python/sctop.py
parent78a99fe6254cad4be310cd84af39f6c46b668c72 (diff)
f2fs: avoid victim selection from previous victim section
When f2fs chooses GC victim in large section & LFS mode, next_victim_seg[gc_type] is referenced first. After segment is freed, next_victim_seg[gc_type] has the next segment number. However, next_victim_seg[gc_type] still has the last segment number even after the last segment of section is freed. In this case, when f2fs chooses a victim for the next GC round, the last segment of previous victim section is chosen as a victim. Initialize next_victim_seg[gc_type] to NULL_SEGNO for the last segment in large section. Fixes: e3080b0120a1 ("f2fs: support subsectional garbage collection") Signed-off-by: Yonggil Song <yonggil.song@samsung.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions