From: Darrick J. Wong Date: Fri, 15 Oct 2021 20:28:27 +0000 (-0400) Subject: xfs: fix radix tree tag signs X-Git-Tag: libxfs-5.14-sync_2021-10-16~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79eb2dcfb0ef2fa4d51db8e8de8f5a40c5dbbc9b;p=thirdparty%2Fxfsprogs-dev.git xfs: fix radix tree tag signs Source kernel commit: 919a4ddb68413056ecb7c71d9d5465bb54c8032b Radix tree tags are supposed to be unsigned ints, so fix the callers. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_ag.c b/libxfs/xfs_ag.c index 403d9a209..a1a2d0d9d 100644 --- a/libxfs/xfs_ag.c +++ b/libxfs/xfs_ag.c @@ -62,7 +62,7 @@ struct xfs_perag * xfs_perag_get_tag( struct xfs_mount *mp, xfs_agnumber_t first, - int tag) + unsigned int tag) { struct xfs_perag *pag; int found; diff --git a/libxfs/xfs_ag.h b/libxfs/xfs_ag.h index 70b978516..4c6f9045b 100644 --- a/libxfs/xfs_ag.h +++ b/libxfs/xfs_ag.h @@ -109,10 +109,10 @@ int xfs_initialize_perag(struct xfs_mount *mp, xfs_agnumber_t agcount, int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno); void xfs_free_perag(struct xfs_mount *mp); -struct xfs_perag *xfs_perag_get(struct xfs_mount *, xfs_agnumber_t); -struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *, xfs_agnumber_t, - int tag); -void xfs_perag_put(struct xfs_perag *pag); +struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno); +struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno, + unsigned int tag); +void xfs_perag_put(struct xfs_perag *pag); /* * Perag iteration APIs