Re: [PATCH] f2fs: Remove unused curseg_segno() and curseg_alloc_type()

From: Chao Yu

Date: Mon Jun 29 2026 - 08:09:04 EST


On 6/26/26 11:07, Zhan Xusheng wrote:
> The only callers of curseg_segno() and curseg_alloc_type() were removed by
> commit 5a4fed7cd97a ("f2fs: simplify do_checkpoint"); both helpers have
> been unused since then.
>
> Being static inline functions they do not trigger -Wunused-function, so
> the dead code has gone unnoticed. Remove them. No functional change.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,