On 2026/2/13 20:26, liujinbao1 wrote:
From: liujinbao1 <[email protected]>

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 <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to