From: Christoph Hellwig Date: Tue, 31 Mar 2026 15:27:24 +0000 (+0200) Subject: xfs: add a separate tracepoint for stealing an open zone for GC X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2257d9f63bbf7e1f39fb2b5585b21ea7445e18f;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Hans Holmberg Reviewed-by: Damien Le Moal Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index c5ad26a1d7bb2..1c098cfc5c00d 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -394,6 +394,7 @@ DEFINE_ZONE_EVENT(xfs_zone_full); DEFINE_ZONE_EVENT(xfs_zone_opened); DEFINE_ZONE_EVENT(xfs_zone_reset); DEFINE_ZONE_EVENT(xfs_zone_gc_target_opened); +DEFINE_ZONE_EVENT(xfs_zone_gc_target_stolen); TRACE_EVENT(xfs_zone_free_blocks, TP_PROTO(struct xfs_rtgroup *rtg, xfs_rgblock_t rgbno, diff --git a/fs/xfs/xfs_zone_gc.c b/fs/xfs/xfs_zone_gc.c index 00a996c13d8ad..0c1e22409ef1b 100644 --- a/fs/xfs/xfs_zone_gc.c +++ b/fs/xfs/xfs_zone_gc.c @@ -543,7 +543,7 @@ xfs_zone_gc_steal_open( return -EIO; } - trace_xfs_zone_gc_target_opened(found->oz_rtg); + trace_xfs_zone_gc_target_stolen(found->oz_rtg); found->oz_is_gc = true; list_del_init(&found->oz_entry); zi->zi_nr_open_zones--;