[PATCH v2 0/2] xfs: fix inode leak and clean up attr intent recovery
From: Yingjie Gao
Date: Tue Jun 09 2026 - 22:23:00 EST
Hi all,
The first patch fixes a leaked inode reference in
xfs_attr_recover_work() when transaction allocation fails after the
recovered attr work item has been attached to the defer pending list.
The second patch cleans up the same function's exit paths so they follow
the same linear cleanup style as the neighboring bmap and exchmaps
recovery helpers, and initializes the local error variable in the same
style.
Changes since v1:
- route the transaction allocation failure through out_rele in patch 1,
as Darrick suggested;
- keep patch 2 focused on the remaining cleanup-path reshaping and the
local error initialization.
Thanks,
Yingjie
Yingjie Gao (2):
xfs: fix inode ref leak in attr intent recovery
xfs: clean up attr intent recovery error paths
fs/xfs/xfs_attr_item.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
--
2.20.1