Re: [f2fs-dev] [PATCH v2] f2fs: fix normal discard process

2022-10-25 Thread Chao Yu
On 2022/10/25 17:40, zhangdongdong wrote: From: Dongdong Zhang In the DPOLICY_BG mode, there is a conflict between the two conditions "i + 1 < dpolicy->granularity" and "i < DEFAULT_DISCARD_GRANULARITY". If i = 15, the first condition is false, it will enter the second condition and dispatch

[f2fs-dev] [PATCH v2] f2fs: fix normal discard process

2022-10-25 Thread zhangdongdong via Linux-f2fs-devel
From: Dongdong Zhang In the DPOLICY_BG mode, there is a conflict between the two conditions "i + 1 < dpolicy->granularity" and "i < DEFAULT_DISCARD_GRANULARITY". If i = 15, the first condition is false, it will enter the second condition and dispatch all small granularity discards in function