From: Christoph Hellwig Date: Sat, 15 Feb 2025 18:35:12 +0000 (+0100) Subject: LOCAL: add verbose kernel messages X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fxfs-zoned;p=users%2Fhch%2Fxfs.git LOCAL: add verbose kernel messages --- diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c index fd4c60a050e6..734b73470ef9 100644 --- a/fs/xfs/xfs_zone_alloc.c +++ b/fs/xfs/xfs_zone_alloc.c @@ -510,6 +510,9 @@ xfs_try_open_zone( if (xfs_zoned_need_gc(mp)) wake_up_process(zi->zi_gc_thread); + /* XXX: this is a little verbose, but let's keep it for now */ + xfs_info(mp, "using zone %u (%u)", + rtg_rgno(oz->oz_rtg), zi->zi_nr_open_zones); trace_xfs_zone_opened(oz->oz_rtg); return oz; } diff --git a/fs/xfs/xfs_zone_gc.c b/fs/xfs/xfs_zone_gc.c index c5136ea9bb1d..a4abaac0fbc5 100644 --- a/fs/xfs/xfs_zone_gc.c +++ b/fs/xfs/xfs_zone_gc.c @@ -504,6 +504,9 @@ xfs_zone_gc_select_victim( if (!victim_rtg) return false; + xfs_info(mp, "reclaiming zone %d, used: %u/%u, bucket: %u", + rtg_rgno(victim_rtg), rtg_rmap(victim_rtg)->i_used_blocks, + rtg_blocks(victim_rtg), bucket); trace_xfs_zone_gc_select_victim(victim_rtg, bucket); xfs_zone_gc_iter_init(iter, victim_rtg); return true;