summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_alloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:15:58 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-10-22 16:40:58 -0700
commit9168e9bfe459112ffcf3f7431a0573bf07e059c5 (patch)
tree0c901eac8dc9b5fa728bb7ada49e1144a8c630f9 /fs/xfs/libxfs/xfs_alloc.c
parented37035d41290a2194b4a281c1a7ef54828e641a (diff)
xfs: clean up extent free log intent item tracepoint callsites
Pass the incore EFI structure to the tracepoints instead of open-coding the argument passing, and augment the tracepoints to tell us which operation we're selecting to match the other intent item tracepoints. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
-rw-r--r--fs/xfs/libxfs/xfs_alloc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c
index 3300de4ce137..3663484dc576 100644
--- a/fs/xfs/libxfs/xfs_alloc.c
+++ b/fs/xfs/libxfs/xfs_alloc.c
@@ -2533,8 +2533,7 @@ xfs_defer_agfl_block(
new->xefi_oinfo = *oinfo;
new->xefi_skip_discard = false;
- trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1);
-
+ trace_xfs_extent_free_defer(mp, XFS_FREE_EXTENT_AGFL, new);
xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_AGFL_FREE, &new->xefi_list);
}
@@ -2578,9 +2577,9 @@ xfs_free_extent_later(
else
new->xefi_oinfo = XFS_RMAP_OINFO_SKIP_UPDATE;
new->xefi_skip_discard = skip_discard;
- trace_xfs_bmap_free_defer(tp->t_mountp,
- XFS_FSB_TO_AGNO(tp->t_mountp, bno), 0,
- XFS_FSB_TO_AGBNO(tp->t_mountp, bno), len);
+
+ trace_xfs_extent_free_defer(tp->t_mountp, XFS_FREE_EXTENT_REGULAR,
+ new);
xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list);
}