]> www.infradead.org Git - users/hch/xfs.git/commitdiff
LOCAL: add verbose kernel messages xfs-zoned
authorChristoph Hellwig <hch@lst.de>
Sat, 15 Feb 2025 18:35:12 +0000 (19:35 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 26 Feb 2025 01:19:42 +0000 (17:19 -0800)
fs/xfs/xfs_zone_alloc.c
fs/xfs/xfs_zone_gc.c

index fd4c60a050e61550dd242bbc4c45f9a85c9a3248..734b73470ef90491edb698312526c669f1f74fe9 100644 (file)
@@ -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;
 }
index c5136ea9bb1ddd5cc87d9188439ebdca4c695669..a4abaac0fbc582c20b21d82a60f77966ebcdf617 100644 (file)
@@ -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;