]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: use the op name in trace_xlog_intent_recovery_failed
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2024 23:07:44 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:26 +0000 (14:06 -0700)
Source kernel commit: bcdfae6ee520b665385020fa3e47633a8af84f12

Instead of tracing the address of the recovery handler, use the name
in the defer op, similar to other defer ops related tracepoints.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_defer.c

index 5bdc8f5a258a3af1d416e6f16696696f57b45a1f..bf1d1e06a35b9cf816c86d928f8d3951652973c4 100644 (file)
@@ -915,8 +915,7 @@ xfs_defer_finish_recovery(
        /* dfp is freed by recover_work and must not be accessed afterwards */
        error = ops->recover_work(dfp, capture_list);
        if (error)
-               trace_xlog_intent_recovery_failed(mp, error,
-                               ops->recover_work);
+               trace_xlog_intent_recovery_failed(mp, ops, error);
        return error;
 }