diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-07 17:12:54 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 17:27:58 +0900 |
| commit | 458de45fa3d8a173ea9cc78debb05caf83e550d3 (patch) | |
| tree | 3dd4798ddbe3691315b261ce413c99d268115a46 | |
| parent | 136249959e67b1c53edcca4f8880fcd251c5e9b6 (diff) | |
| download | linux-next-458de45fa3d8a173ea9cc78debb05caf83e550d3.tar.gz linux-next-458de45fa3d8a173ea9cc78debb05caf83e550d3.zip | |
ntfs: propagate EA truncate errors
Propagate errors from truncating an EA stream so callers do not
report a successful xattr update after a failed resize.
Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
| -rw-r--r-- | fs/ntfs/ea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/ea.c b/fs/ntfs/ea.c index b4fcfbe2da4c..ff69fb07f84a 100644 --- a/fs/ntfs/ea.c +++ b/fs/ntfs/ea.c @@ -37,7 +37,7 @@ static int ntfs_write_ea(struct ntfs_inode *ni, __le32 type, char *value, s64 ea struct ntfs_inode *ea_ni = NTFS_I(ea_vi); if (need_truncate && ea_ni->data_size > ea_off + ea_size) - ntfs_attr_truncate(ea_ni, ea_off + ea_size); + err = ntfs_attr_truncate(ea_ni, ea_off + ea_size); mark_mft_record_dirty(ni); } |
