diff options
| author | liujinbao1 <liujinbao1@xiaomi.com> | 2026-02-13 20:26:30 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-03-24 17:20:59 +0000 |
| commit | 5604129b6504c2d6dfbc02515c43e6186a1285e7 (patch) | |
| tree | 3413c31721d9df5957ef76f0b72eaac2fd2ed8b2 /include/linux/i2c/git@git.tavy.me:linux-stable.git | |
| parent | 3cf11e6f36c170050c12171dd6fd3142711478fc (diff) | |
f2fs:Fix incomplete search range in f2fs_get_victim when f2fs_need_rand_seg is enabled
During the f2fs_get_victim process, when the f2fs_need_rand_seg is enabled in select_policy,
p->offset is a random value, and the search range is from p->offset to MAIN_SECS.
When segno >= last_segment, the loop breaks and exits directly without searching
the range from 0 to p->offset.This results in an incomplete search when the random
offset is not zero.
Signed-off-by: liujinbao1 <liujinbao1@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
