Re: [PATCH] ext4: spread files of sibling directories over a flex group
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:52:20 EST
On Tue, 13 Oct 2026 16:28:52 +0900, Daejun Park wrote:
> On a flex_bg file system, find_group_other() puts a new file in the
> first group of the parent's flex group that has a free inode. Orlov
> usually keeps a directory below the top level in its parent's flex group
> and packs directory inodes at its start, so the files of sibling
> directories come from the same group and get consecutive inode numbers.
> The flex_bg path was added by commit a4912123b688 ("ext4: New
> inode/block allocation algorithms for flex_bg filesystems"). The
> non-flex_bg path instead adds the parent's inode number to the starting
> group once the parent's own group has no free inode or block, so that
> the files of different directories which share a group land in
> different groups.
>
> [...]
Applied, thanks!
[1/1] ext4: spread files of sibling directories over a flex group
commit: 7923d83bdf8d8b21394789167ab3eeb0130e90cb
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>