Re: [f2fs-dev] [PATCH] f2fs: fix missing discard for active segments

2025-01-02 Thread Chunhai Guo via Linux-f2fs-devel
在 12/3/2024 2:51 PM, Chunhai Guo 写道: Dear Chao & Jaegeuk, Could you please help review this patch? Currently, this issue is quite easy to reproduce in some projects. Thanks, > locate_dirty_segment() does not set any current active segment as a > prefree segment. Thus, the issue described below

[f2fs-dev] [PATCH] f2fs: fix missing discard for active segments

2024-12-03 Thread Chunhai Guo via Linux-f2fs-devel
locate_dirty_segment() does not set any current active segment as a prefree segment. Thus, the issue described below may occur: Step 1: During a checkpoint, add_discard_addrs() does not handle the current active 'segment X' with 0 valid blocks (and non-zero discard blocks). As a result, no struct