]> www.infradead.org Git - users/hch/xfs.git/commitdiff
printk xfs-zoned-2024-09-16
authorChristoph Hellwig <hch@lst.de>
Sat, 7 Sep 2024 07:32:20 +0000 (10:32 +0300)
committerChristoph Hellwig <hch@lst.de>
Sat, 7 Sep 2024 07:32:20 +0000 (10:32 +0300)
fs/xfs/xfs_zone_gc.c

index 595fdf772045f14303ff734930ec9aa1c820f4f4..63a6429ae66aa7c986d1d1df31b3d823d83fa990 100644 (file)
@@ -145,7 +145,18 @@ xfs_zoned_reservce_space_locked(
 
        rtxavail = xfs_sum_freecounter(mp, FREE_RTAVAILABLE);
        if (rtxavail <= 0) {
+               struct xfs_rtgroup *rtg;
+
                printk("no space available\n");
+               printk("rtextents: %lld\n", xfs_sum_freecounter(mp, FREE_RTEXTENTS));
+               printk("free zones: %d\n", atomic_read(&mp->m_nr_free_zones));
+               printk("open zones:\n");
+               list_for_each_entry(rtg, &mp->m_open_zones, rtg_entry) {
+                       printk("\t  zone %d, wp %u, written %u, used %llu\n",
+                               rtg->rtg_rgno,
+                               rtg->rtg_write_pointer, rtg->rtg_written,
+                               *xfs_zone_used_counter(rtg));
+               }
                return -ENOSPC;
        }
        *rtxlen = min(*rtxlen, rtxavail);