]> 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>
Wed, 3 Jul 2024 21:21:41 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:13:14 +0000 (17:13 -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 b4e6900be082fedfb1718e064982e3c6b7a1fa8d..c78d42728fc02933cd2d88f3cb9892ea9f30e875 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;
 }