Re: [f2fs-dev] [PATCH 2/2] fsck.f2fs: read each sit block only once in build_sit_entries

Chao Yu via Linux-f2fs-devel <[email protected]> Mon, 3 Aug 2026 12:41:07 +0800
Newsgroups net.sourceforge.lists.linux-f2fs-devel
Message-ID <[email protected]>
On 7/1/26 17:28, Yangyang Zang wrote:
> build_sit_entries() calls get_current_sit_page() for every entry while
> scanning consecutive sit entries. Since each sit block contains multiple
> consecutive sit entries, this causes the same sit block to be read and
> copied repeatedly.
> 
> Read the sit block only when entering a new sit block, and reuse the
> cached block for the remaining sit entries in that block.
> 
> Signed-off-by: Yangyang Zang <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel