xfs: use unsigned ints for non-negative quantities in xfs_attr_remote.c
authorDarrick J. Wong <djwong@kernel.org>
Thu, 2 May 2024 14:48:35 +0000 (07:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 2 May 2024 14:48:35 +0000 (07:48 -0700)
commita86f8671d03e6eb31abaefdf6928b92df0a2368c
treec2657e4e793c363391c912ed6b9c1acf53bccd5d
parent21255afdd7296f57dd65f815301426bcf911c82d
xfs: use unsigned ints for non-negative quantities in xfs_attr_remote.c

In the next few patches we're going to refactor the attr remote code so
that we can support headerless remote xattr values for storing merkle
tree blocks.  For now, let's change the code to use unsigned int to
describe quantities of bytes and blocks that cannot be negative.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_attr_remote.h