Re: [PATCH] ext4: don't clobber the migration error in ext4_ext_migrate()
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:49:37 EST
On Thu, 10 Sep 2026 13:29:27 +0800, Yichong Chen wrote:
> ext4_ext_migrate() records the failure of the migration in retval, but
> ext4_journal_ensure_credits() overwrites it: it returns 0 when the handle
> has enough credits or the transaction could be extended, and 1 when the
> transaction had to be restarted. A failed migration is therefore
> reported as success, and a restart leaks the internal value 1 to
> userspace through EXT4_IOC_MIGRATE and FS_IOC_SETFLAGS.
>
> [...]
Applied, thanks!
[1/1] ext4: don't clobber the migration error in ext4_ext_migrate()
commit: 82e2a5743b6ada7c77e072ca67c9ec55e9e18923
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>