Re: [PATCH] ext4: return -EINVAL on hole in ext4_convert_unwritten_extents_atomic()
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:51:19 EST
On Fri, 23 Oct 2026 15:53:45 +0530, Ojaswin Mujoo wrote:
> We should ideally never encounter a hole during the endio conversion as
> that indicates something is wrong with our extent handling. Still if we do
> find a hole at atomic write endio, ext4_map_blocks() returns 0 which would
> be returned back to callers by ext4_convert_unwritten_extents_atomic().
> This can be wrongly interpreted as a success. Fix this by bailing out with
> -EINVAL instead.
>
> [...]
Applied, thanks!
[1/1] ext4: return -EINVAL on hole in ext4_convert_unwritten_extents_atomic()
commit: 23e76be92cd7cdb25d53d522a01285e595c30cbe
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>