summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2026-09-14 17:28:51 -0500
committerCarlos Maiolino <cem@kernel.org>2026-09-17 11:27:49 +0200
commit383641abd3cc89e2b7422f59ebccb89d63404bfa (patch)
tree8981870c9ea4fd782c1084059814a96207ed019d /fs/xfs
parent4f4f0e78aab58e1bdaf97758e5801c6912f0397f (diff)
downloadlinux-next-383641abd3cc89e2b7422f59ebccb89d63404bfa.tar.gz
linux-next-383641abd3cc89e2b7422f59ebccb89d63404bfa.zip
xfs: remove unused mp argument from xfs_inobt_rec_check_count()
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc.c2
-rw-r--r--fs/xfs/libxfs/xfs_ialloc_btree.c1
-rw-r--r--fs/xfs/libxfs/xfs_ialloc_btree.h5
3 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c
index 58dac4d505ba..19b513b11692 100644
--- a/fs/xfs/libxfs/xfs_ialloc.c
+++ b/fs/xfs/libxfs/xfs_ialloc.c
@@ -615,7 +615,7 @@ xfs_inobt_insert_sprec(
trace_xfs_irec_merge_post(pag, nrec);
- error = xfs_inobt_rec_check_count(mp, nrec);
+ error = xfs_inobt_rec_check_count(nrec);
if (error)
goto error;
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c
index 1376e8630449..1f0bace2f144 100644
--- a/fs/xfs/libxfs/xfs_ialloc_btree.c
+++ b/fs/xfs/libxfs/xfs_ialloc_btree.c
@@ -687,7 +687,6 @@ xfs_inobt_irec_to_allocmask(
*/
int
xfs_inobt_rec_check_count(
- struct xfs_mount *mp,
struct xfs_inobt_rec_incore *rec)
{
int inocount = 0;
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.h b/fs/xfs/libxfs/xfs_ialloc_btree.h
index 300edf5bc009..e04c63c66f39 100644
--- a/fs/xfs/libxfs/xfs_ialloc_btree.h
+++ b/fs/xfs/libxfs/xfs_ialloc_btree.h
@@ -57,10 +57,9 @@ unsigned int xfs_inobt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
uint64_t xfs_inobt_irec_to_allocmask(const struct xfs_inobt_rec_incore *irec);
#if defined(DEBUG) || defined(XFS_WARN)
-int xfs_inobt_rec_check_count(struct xfs_mount *,
- struct xfs_inobt_rec_incore *);
+int xfs_inobt_rec_check_count(struct xfs_inobt_rec_incore *);
#else
-#define xfs_inobt_rec_check_count(mp, rec) 0
+#define xfs_inobt_rec_check_count(rec) 0
#endif /* DEBUG */
int xfs_finobt_calc_reserves(struct xfs_perag *perag, struct xfs_trans *tp,