Re: [PATCH] ext4: clear error before retrying inode xattr space fallback
From: Theodore Ts'o
Date: Thu Jul 23 2026 - 09:19:21 EST
On Wed, 08 Jul 2026 12:57:19 +0000, Guanghui Yang wrote:
> When ext4_xattr_make_inode_space() returns -ENOSPC,
> ext4_expand_extra_isize_ea() can retry the expansion with
> s_min_extra_isize. If that retry succeeds by finding enough ibody free
> space, control jumps directly to the shift label.
>
> The previous -ENOSPC is still stored in error in that path, so the
> function can update i_extra_isize but still return -ENOSPC to the
> caller. Clear error before retrying so a successful fallback expansion
> returns success.
>
> [...]
Applied, thanks!
[1/1] ext4: clear error before retrying inode xattr space fallback
commit: 409a7f12a0933ff2c617fa814c76cef0bd1d457a
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>