]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: use unsigned ints for non-negative quantities in xfs_attr_remote.c
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:56 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:04 +0000 (17:01 -0700)
commitf93fdf9f94dd58ec650a8e8a07fb4f66dfe003fb
tree2943c562fa8189fbac7d919829548370856cd725
parent884c8799665bf48bc89c2b1bda7449d01aae6a9d
xfs: use unsigned ints for non-negative quantities in xfs_attr_remote.c

Source kernel commit: a86f8671d03e6eb31abaefdf6928b92df0a2368c

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