Re: [PATCH] fsck.f2fs: drop unused SB_ENCODE_FLAG

From: Chao Yu

Date: Sun Aug 02 2026 - 22:09:04 EST


On 6/5/26 18:05, Chunhai Guo wrote:
Since commit 29c1e18a0bc5 ("fsck.f2fs: tune linear_lookup in
f2fs_do_mount()"), fsck_update_sb_flags() writes the superblock directly
and nothing sets c.invalid_sb with SB_ENCODE_FLAG anymore. Drop the dead
flag and simplify the SB_NEED_FIX check.

BTW, SB_ENCODE_FLAG should originally have been 0x10, not 0x16, since
invalid_sb is a bitmask.

Signed-off-by: Chunhai Guo <guochunhai@xxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,