Re: [PATCH v2] ntfs: leave HasEA flag untouched on setxattr failure
From: Namjae Jeon
Date: Thu Aug 27 2026 - 09:18:10 EST
On Thu, Aug 27, 2026 at 3:43 PM Baolin Liu <liubaolin12138@xxxxxxx> wrote:
>
> From: Baolin Liu <liubaolin@xxxxxxxxxx>
>
> In ntfs_set_ea(), the exit path unconditionally updates the HasEA
> flag based on ea_info_qsize. When an error occurs before
> ea_info_qsize is updated, NInoClearHasEA() hides existing on-disk
> EAs until the inode is evicted.
>
> Only update the flag on success.
>
> Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
> Signed-off-by: Baolin Liu <liubaolin@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks!