]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: return bool from xfs_attr3_leaf_add
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)
commit3b59e7d1cd1fd3ed31e7c4b004f38f589a223a61
tree580115f67459503634baa6144dd50508051fbc63
parente63467a29e4908b5792b67d69f5840d512b09edc
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