From: Darrick J. Wong Date: Mon, 12 Jul 2021 22:01:21 +0000 (-0700) Subject: xfs: fix radix tree tag signs X-Git-Tag: libxfs-5.14-sync_2021-07-28~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=854ad57bfc68742950d72ca919461b793b78bb7f;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 --- 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