]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: pass a pag to xfs_difree_inode_chunk
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:11 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:23 +0000 (18:01 -0800)
Source kernel commit: 67ce5ba575354da1542e0579fb8c7a871cbf57b3

We'll want to use more than just the agno field in a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_ialloc.c

index 43af698fa9090374b49b7039a3e8115729b4a4e7..10d88eb0b5bc325f0d740b72b6e078845b6cf861 100644 (file)
@@ -1969,10 +1969,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;
@@ -2143,7 +2144,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 {