]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Sep 2024 05:30:03 +0000 (07:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 7 Oct 2024 06:00:11 +0000 (08:00 +0200)
commitb1c649da15c2e4c86344c8e5af69c8afa215efec
tree2403b413f743aa9e2f300cfb7433c585cef85b4e
parent20195d011c840b01fa91a85ebcd099ca95fbf8fc
xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname

xfs_attr_leaf_try_add is only called by xfs_attr_leaf_addname, and
merging the two will simplify a following error handling fix.

To facilitate this move the remote block state save/restore helpers up in
the file so that they don't need forward declarations now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_attr.c