]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: return bool from xfs_attr3_leaf_add
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:41 +0000 (13:44 -0700)
commitc6f738023fc44eb4597d3c6a2c9003777bdcc016
tree580115f67459503634baa6144dd50508051fbc63
parentf123dbe940423d2353b5ef5816b05df68fe6ec2e
xfs: return bool from xfs_attr3_leaf_add

Source kernel commit: 346c1d46d4c631c0c88592d371f585214d714da4

xfs_attr3_leaf_add only has two potential return values, indicating if the
entry could be added or not.  Replace the errno return with a bool so that
ENOSPC from it can't easily be confused with a real ENOSPC.

Remove the return value from the xfs_attr3_leaf_add_work helper entirely,
as it always return 0.

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