Re: [PATCH] ext4: skip holes when shrinking the extent tree in fast commit replay

From: Theodore Ts'o

Date: Thu Nov 19 2026 - 09:53:21 EST



On Wed, 07 Oct 2026 09:41:31 +0900, Daejun Park wrote:
> ext4_ext_replay_shrink_inode() walks the extents of an inode from block
> 0 up to the given end and tries to merge each one with its neighbours.
> When the walk is in a hole that follows an extent, ext4_find_extent()
> returns that extent, and the walk moves on by a single block. Replay
> calls it up to i_size after every ADD_RANGE and DEL_RANGE tag, so the
> time recovery takes is proportional to the number of tags times the
> number of hole blocks below i_size.
>
> [...]

Applied, thanks!

[1/1] ext4: skip holes when shrinking the extent tree in fast commit replay
commit: 3b74728368f72f7ba3c73f964798e203ba1b56eb

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>