Re: [PATCH v2] ext4: fix journal credit check when setting fscrypt context
From: Theodore Ts'o
Date: Thu Mar 26 2026 - 08:07:40 EST
On Sat, 07 Feb 2026 10:53:03 +0100, Simon Weber wrote:
> Fix an issue arising when ext4 features has_journal, ea_inode, and encrypt
> are activated simultaneously, leading to ENOSPC when creating an encrypted
> file.
>
> Fix by passing XATTR_CREATE flag to xattr_set_handle function if a handle
> is specified, i.e., when the function is called in the control flow of
> creating a new inode. This aligns the number of jbd2 credits set_handle
> checks for with the number allocated for creating a new inode.
>
> [...]
Applied, thanks!
[1/1] ext4: fix journal credit check when setting fscrypt context
commit: cb8c10c17a8b339423cd950a04841c5b3287f346
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>