[f2fs-dev] [PATCH -next] f2fs: add a trace interface for f2fs_update_extent_tree_range_compressed

2022-09-15 Thread Zhang Qilong via Linux-f2fs-devel
For f2fs_update_extent_tree_range_compressed, keeping the trace and function name consistent to distinguish from trace of f2fs_update_extent_tree_range. And we add "c_len" into the trace, result like: [003] . 228.568157: f2fs_update_extent_tree_range_compressed: dev = (8,0)

[f2fs-dev] [PATCH Vx 1/1] f2fs: fix some error handling case in gc

2022-09-15 Thread zhiguo.niu
During GC, if segment type stored in SSA and SIT is inconsistent, we set SBI_NEED_FSCK first and then stop checkpoint, this will cause the following issues: 1. SBI_NEED_FSCK can not be set to flash truly because of checkpoint has been stopped. 2. Will cause more EIO error because of CP_ERROR_FLAG i

[f2fs-dev] [PATCH Vx 1/1] f2fs: fix some error handling case in gc

2022-09-15 Thread zhiguo.niu
During GC, if segment type stored in SSA and SIT is inconsistent, we set SBI_NEED_FSCK first and then stop checkpoint, this will cause the following issues: 1. SBI_NEED_FSCK can not be set to flash truly because of checkpoint has been stopped. 2. Will cause more EIO error because of CP_ERROR_FLAG i

Re: [f2fs-dev] [PATCH 1/1] f2fs: fix to check space of current segment journal

2022-09-15 Thread Wu Bo via Linux-f2fs-devel
On 2022/9/14 16:08, Philippe De Muyter wrote: > Hello Wu Bo, > > On Wed, Sep 14, 2022 at 12:04:23PM +0800, Wu Bo wrote: >> As Philippe De Muyter reported: >> https://lore.kernel.org/linux-f2fs-devel/20220913224908.GA25100@172.21.0.10/T/#u >> >> The warning log showed that when finding a new space f