]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: give refcount btree cursor error tracepoints their own class
authorDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jan 2024 17:40:23 +0000 (09:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:45 +0000 (17:21 -0700)
Convert all the refcount tracepoints to use the btree error tracepoint
class.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_refcount.c

index f56d383302422dfc04b32aff1b99ed3bbecdced1..5caa993125bfa36efd3c320e2c52177bde9bbfc1 100644 (file)
@@ -210,8 +210,7 @@ xfs_refcount_update(
 
        error = xfs_btree_update(cur, &rec);
        if (error)
-               trace_xfs_refcount_update_error(cur->bc_mp,
-                               cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+               trace_xfs_refcount_update_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -246,8 +245,7 @@ xfs_refcount_insert(
 
 out_error:
        if (error)
-               trace_xfs_refcount_insert_error(cur->bc_mp,
-                               cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+               trace_xfs_refcount_insert_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -287,8 +285,7 @@ xfs_refcount_delete(
                        &found_rec);
 out_error:
        if (error)
-               trace_xfs_refcount_delete_error(cur->bc_mp,
-                               cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+               trace_xfs_refcount_delete_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -437,8 +434,7 @@ xfs_refcount_split_extent(
        return error;
 
 out_error:
-       trace_xfs_refcount_split_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_split_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -521,8 +517,7 @@ xfs_refcount_merge_center_extents(
        return error;
 
 out_error:
-       trace_xfs_refcount_merge_center_extents_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_merge_center_extents_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -588,8 +583,7 @@ xfs_refcount_merge_left_extent(
        return error;
 
 out_error:
-       trace_xfs_refcount_merge_left_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_merge_left_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -657,8 +651,7 @@ xfs_refcount_merge_right_extent(
        return error;
 
 out_error:
-       trace_xfs_refcount_merge_right_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_merge_right_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -752,8 +745,7 @@ not_found:
        return error;
 
 out_error:
-       trace_xfs_refcount_find_left_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_find_left_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -847,8 +839,7 @@ not_found:
        return error;
 
 out_error:
-       trace_xfs_refcount_find_right_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_find_right_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -1253,8 +1244,7 @@ advloop:
 
        return error;
 out_error:
-       trace_xfs_refcount_modify_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_modify_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -1314,8 +1304,7 @@ xfs_refcount_adjust(
        return 0;
 
 out_error:
-       trace_xfs_refcount_adjust_error(cur->bc_mp, cur->bc_ag.pag->pag_agno,
-                       error, _RET_IP_);
+       trace_xfs_refcount_adjust_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -1629,8 +1618,7 @@ done:
 
 out_error:
        if (error)
-               trace_xfs_refcount_find_shared_error(cur->bc_mp,
-                               cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+               trace_xfs_refcount_find_shared_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -1785,8 +1773,7 @@ xfs_refcount_adjust_cow_extents(
 
        return error;
 out_error:
-       trace_xfs_refcount_modify_extent_error(cur->bc_mp,
-                       cur->bc_ag.pag->pag_agno, error, _RET_IP_);
+       trace_xfs_refcount_modify_extent_error(cur, error, _RET_IP_);
        return error;
 }
 
@@ -1832,8 +1819,7 @@ xfs_refcount_adjust_cow(
        return 0;
 
 out_error:
-       trace_xfs_refcount_adjust_cow_error(cur->bc_mp, cur->bc_ag.pag->pag_agno,
-                       error, _RET_IP_);
+       trace_xfs_refcount_adjust_cow_error(cur, error, _RET_IP_);
        return error;
 }