]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:46 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:03 +0000 (15:45 -0700)
commite63467a29e4908b5792b67d69f5840d512b09edc
treef8457e638ac7ec2c89d5a564d35e57c892f0ffaf
parent8a04405248abc604e569d2d20fa6852c012b82fe
xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname

Source kernel commit: b1c649da15c2e4c86344c8e5af69c8afa215efec

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>
libxfs/xfs_attr.c