Re: [PATCH] ext4: clear journal restart indication after inserting extent

From: Theodore Ts'o

Date: Thu Nov 19 2026 - 09:50:11 EST



On Wed, 09 Sep 2026 11:35:42 +0800, Yichong Chen wrote:
> ext4_datasem_ensure_credits() returns 1 when it successfully restarts
> the transaction. finish_range() leaves that value in retval when the
> subsequent ext4_ext_insert_extent() succeeds. Its callers interpret any
> nonzero return as a migration failure, so they stop building the extent
> tree and take the cleanup path instead of completing the migration.
>
> Before ext4_ext_insert_extent() was changed to return a path, its integer
> return value overwrote the restart indication. Restore that behavior with
> PTR_ERR_OR_ZERO(), preserving insertion errors and returning zero on
> success.
>
> [...]

Applied, thanks!

[1/1] ext4: clear journal restart indication after inserting extent
commit: 3b6aee59883c3056bb0a5e7491f9dc995bbac964

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