]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: Kill bch2_fs_usage_to_text()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Feb 2024 01:04:48 +0000 (20:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:13 +0000 (19:00 -0400)
Dead code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h

index 240fc8185d4faaf12c459118f0d8492b984c8d90..a1257e9587429d008720b544e7fe5422ddcefeb6 100644 (file)
@@ -32,45 +32,6 @@ void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage)
        acc_u64s_percpu((u64 *) usage, (u64 __percpu *) ca->usage, dev_usage_u64s());
 }
 
-void bch2_fs_usage_to_text(struct printbuf *out,
-                          struct bch_fs *c,
-                          struct bch_fs_usage_online *fs_usage)
-{
-       unsigned i;
-
-       prt_printf(out, "capacity:\t\t\t%llu\n", c->capacity);
-
-       prt_printf(out, "hidden:\t\t\t\t%llu\n",
-              fs_usage->u.b.hidden);
-       prt_printf(out, "data:\t\t\t\t%llu\n",
-              fs_usage->u.b.data);
-       prt_printf(out, "cached:\t\t\t\t%llu\n",
-              fs_usage->u.b.cached);
-       prt_printf(out, "reserved:\t\t\t%llu\n",
-              fs_usage->u.b.reserved);
-       prt_printf(out, "nr_inodes:\t\t\t%llu\n",
-              fs_usage->u.b.nr_inodes);
-       prt_printf(out, "online reserved:\t\t%llu\n",
-              fs_usage->online_reserved);
-
-       for (i = 0;
-            i < ARRAY_SIZE(fs_usage->u.persistent_reserved);
-            i++) {
-               prt_printf(out, "%u replicas:\n", i + 1);
-               prt_printf(out, "\treserved:\t\t%llu\n",
-                      fs_usage->u.persistent_reserved[i]);
-       }
-
-       for (i = 0; i < c->replicas.nr; i++) {
-               struct bch_replicas_entry_v1 *e =
-                       cpu_replicas_entry(&c->replicas, i);
-
-               prt_printf(out, "\t");
-               bch2_replicas_entry_to_text(out, e);
-               prt_printf(out, ":\t%llu\n", fs_usage->u.replicas[i]);
-       }
-}
-
 static u64 reserve_factor(u64 r)
 {
        return r + (round_up(r, (1 << RESERVE_FACTOR)) >> RESERVE_FACTOR);
index 711c85e24f6d1360a86cbfc902ae97d6cdfc3486..e56fde47e453331cd923da90581a106734f6239c 100644 (file)
@@ -298,9 +298,6 @@ static inline unsigned dev_usage_u64s(void)
        return sizeof(struct bch_dev_usage) / sizeof(u64);
 }
 
-void bch2_fs_usage_to_text(struct printbuf *,
-                          struct bch_fs *, struct bch_fs_usage_online *);
-
 u64 bch2_fs_sectors_used(struct bch_fs *, struct bch_fs_usage_online *);
 
 struct bch_fs_usage_short