]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: pass a pag to xfs_difree_inode_chunk
authorChristoph Hellwig <hch@lst.de>
Sat, 31 Aug 2024 18:05:55 +0000 (21:05 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 20 Sep 2024 12:06:41 +0000 (14:06 +0200)
We'll want to use more than just the agno field in a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ialloc.c

index 20bb5ce3813457e46c2d616b5c20a08a81c88278..e075fb1753c83481f9994fd529ae7fbe61a6b2b9 100644 (file)
@@ -1974,10 +1974,11 @@ retry:
 static int
 xfs_difree_inode_chunk(
        struct xfs_trans                *tp,
-       xfs_agnumber_t                  agno,
+       struct xfs_perag                *pag,
        struct xfs_inobt_rec_incore     *rec)
 {
        struct xfs_mount                *mp = tp->t_mountp;
+       xfs_agnumber_t                  agno = pag->pag_agno;
        xfs_agblock_t                   sagbno = XFS_AGINO_TO_AGBNO(mp,
                                                        rec->ir_startino);
        int                             startidx, endidx;
@@ -2148,7 +2149,7 @@ xfs_difree_inobt(
                        goto error0;
                }
 
-               error = xfs_difree_inode_chunk(tp, pag->pag_agno, &rec);
+               error = xfs_difree_inode_chunk(tp, pag, &rec);
                if (error)
                        goto error0;
        } else {