summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_attr_remote.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-05-02 17:48:35 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-05-02 17:48:35 +0300
commita86f8671d03e6eb31abaefdf6928b92df0a2368c (patch)
treec2657e4e793c363391c912ed6b9c1acf53bccd5d /fs/xfs/libxfs/xfs_attr_remote.h
parent21255afdd7296f57dd65f815301426bcf911c82d (diff)
downloadlinux-a86f8671d03e6eb31abaefdf6928b92df0a2368c.tar.xz
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr_remote.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr_remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_attr_remote.h b/fs/xfs/libxfs/xfs_attr_remote.h
index d097ec6c4dc3..c64b04f91caf 100644
--- a/fs/xfs/libxfs/xfs_attr_remote.h
+++ b/fs/xfs/libxfs/xfs_attr_remote.h
@@ -6,7 +6,7 @@
#ifndef __XFS_ATTR_REMOTE_H__
#define __XFS_ATTR_REMOTE_H__
-int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
+unsigned int xfs_attr3_rmt_blocks(struct xfs_mount *mp, unsigned int attrlen);
int xfs_attr_rmtval_get(struct xfs_da_args *args);
int xfs_attr_rmtval_stale(struct xfs_inode *ip, struct xfs_bmbt_irec *map,