]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:43:44 +0000 (12:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:40 +0000 (13:44 -0700)
commitf123dbe940423d2353b5ef5816b05df68fe6ec2e
treef8457e638ac7ec2c89d5a564d35e57c892f0ffaf
parent9cf826a3ed3886a7d6b93a2d31fab8301e12c9b8
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