Skip to content

Commit c2257d9

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: add a separate tracepoint for stealing an open zone for GC
The case where we have to reuse an already open zone warrants a different trace point vs the normal opening of a GC zone. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent e771da0 commit c2257d9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

fs/xfs/xfs_trace.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ DEFINE_ZONE_EVENT(xfs_zone_full);
394394
DEFINE_ZONE_EVENT(xfs_zone_opened);
395395
DEFINE_ZONE_EVENT(xfs_zone_reset);
396396
DEFINE_ZONE_EVENT(xfs_zone_gc_target_opened);
397+
DEFINE_ZONE_EVENT(xfs_zone_gc_target_stolen);
397398

398399
TRACE_EVENT(xfs_zone_free_blocks,
399400
TP_PROTO(struct xfs_rtgroup *rtg, xfs_rgblock_t rgbno,

fs/xfs/xfs_zone_gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ xfs_zone_gc_steal_open(
543543
return -EIO;
544544
}
545545

546-
trace_xfs_zone_gc_target_opened(found->oz_rtg);
546+
trace_xfs_zone_gc_target_stolen(found->oz_rtg);
547547
found->oz_is_gc = true;
548548
list_del_init(&found->oz_entry);
549549
zi->zi_nr_open_zones--;

0 commit comments

Comments
 (0)