Re: [PATCH v2 0/2] ext4: fix fast commit and extent status after unwritten extent zero-out

From: Theodore Ts'o

Date: Thu Nov 19 2026 - 09:51:14 EST



On Thu, 08 Oct 2026 10:25:35 +0900, Daejun Park wrote:
> When ext4_ext_convert_to_initialized() converts part of an unwritten
> extent, it may zero out the blocks around the range and convert them
> too, and ext4_split_extent() does the same with a whole extent when a
> split fails. Two things go wrong around that.
>
> 1/2: if the zeroout fails, the blocks on that side stay unwritten in the
> extent tree, but the extent status tree caches them as written. Reads
> return old disk contents, and writes go in place without converting the
> extent, so they read back as zeroes once the entry is dropped.
>
> [...]

Applied, thanks!

[1/2] ext4: don't cache unzeroed blocks as written after a failed zeroout
commit: b8ae46fd81bc3f7c537f0180951fbec8cf686c5e
[2/2] ext4: track zeroed out blocks of unwritten extents for fast commit
commit: 9d3c10898c648d85889e53ff742c6bc8483051f3

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