]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: return bool from xfs_attr3_leaf_add
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Sep 2024 05:30:04 +0000 (07:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 7 Oct 2024 06:00:11 +0000 (08:00 +0200)
commit346c1d46d4c631c0c88592d371f585214d714da4
treeffe7cf3edde40b486e01f779cdd0d71c2ed65ced
parentb1c649da15c2e4c86344c8e5af69c8afa215efec
xfs: return bool from xfs_attr3_leaf_add

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