Skip to content

Commit 9d5dba2

Browse files
author
Kent Overstreet
committed
bcachefs: drop to_text code for obsolete bps in alloc keys
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 3fe8a18 commit 9d5dba2

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

fs/bcachefs/alloc_background.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c
321321
{
322322
struct bch_alloc_v4 _a;
323323
const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &_a);
324-
unsigned i;
325324

326325
prt_newline(out);
327326
printbuf_indent_add(out, 2);
@@ -353,23 +352,6 @@ void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c
353352
prt_printf(out, "fragmentation %llu", a->fragmentation_lru);
354353
prt_newline(out);
355354
prt_printf(out, "bp_start %llu", BCH_ALLOC_V4_BACKPOINTERS_START(a));
356-
prt_newline(out);
357-
358-
if (BCH_ALLOC_V4_NR_BACKPOINTERS(a)) {
359-
struct bkey_s_c_alloc_v4 a_raw = bkey_s_c_to_alloc_v4(k);
360-
const struct bch_backpointer *bps = alloc_v4_backpointers_c(a_raw.v);
361-
362-
prt_printf(out, "backpointers: %llu", BCH_ALLOC_V4_NR_BACKPOINTERS(a_raw.v));
363-
printbuf_indent_add(out, 2);
364-
365-
for (i = 0; i < BCH_ALLOC_V4_NR_BACKPOINTERS(a_raw.v); i++) {
366-
prt_newline(out);
367-
bch2_backpointer_to_text(out, &bps[i]);
368-
}
369-
370-
printbuf_indent_sub(out, 2);
371-
}
372-
373355
printbuf_indent_sub(out, 2);
374356
}
375357

0 commit comments

Comments
 (0)