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

And remove the single instance class indirection for it.

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_ag_resv.c

index 7e5cbe0cb6afd345f5f7dafd15a53dd73b2bc559..d1657d6c636546bfc2239b79a5bfc24d800f861a 100644 (file)
@@ -205,8 +205,7 @@ __xfs_ag_resv_init(
        else
                error = xfs_dec_fdblocks(mp, hidden_space, true);
        if (error) {
-               trace_xfs_ag_resv_init_error(pag->pag_mount, pag->pag_agno,
-                               error, _RET_IP_);
+               trace_xfs_ag_resv_init_error(pag, error, _RET_IP_);
                xfs_warn(mp,
 "Per-AG reservation for AG %u failed.  Filesystem may run out of space.",
                                pag->pag_agno);