Re: [f2fs-dev] [PATCH v2 04/20] f2fs: support subpage blocks in directory operations
From: Chao Yu
Date: Tue Nov 17 2026 - 03:54:38 EST
On 11/16/26 12:08, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@xxxxxxxxxx>
>
> With subpage blocks, a directory folio holds several dentry blocks.
> Address a dentry block within its folio by its block index, and mark
> only the modified dentry block dirty. When an empty dentry block is
> freed, clear only the state of that block and keep the folio dirty if
> other blocks in it are still dirty. If no dirty block is left, clear the
> gcing flag of the folio too.
>
> Also read the name length in f2fs_delete_entry() under the folio lock,
> so that the dentry bitmap is not updated with a value read without it.
>
> Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Thanks,