From: Christoph Hellwig Date: Mon, 25 Nov 2024 21:14:13 +0000 (-0800) Subject: xfs: pass a perag structure to the xfs_ag_resv_init_error trace point X-Git-Tag: v6.13.0~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50fe5d5393e0dc7f02ef4b2071619431be85927e;p=thirdparty%2Fxfsprogs-dev.git xfs: pass a perag structure to the xfs_ag_resv_init_error trace point Source kernel commit: 835ddb592fab75ed96828ee3f12ea44496882d6b And remove the single instance class indirection for it. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/xfs_ag_resv.c b/libxfs/xfs_ag_resv.c index 7e5cbe0c..d1657d6c 100644 --- a/libxfs/xfs_ag_resv.c +++ b/libxfs/xfs_ag_resv.c @@ -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);