aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-19 16:06:33 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2022-12-19 16:06:33 -0500
commitb6fca67693002848f21c2f27131c212debf8a396 (patch)
tree82749a65f1c0257c120c7425193cb5b08e0cadd6
parent1eae1d718c228fb1fc3e7a47a830a2c71f84b5cf (diff)
downloadbcachefs-tools-b6fca67693002848f21c2f27131c212debf8a396.tar.gz
Update bcachefs sources to c801fa69f0 bcachefs: Fix bch_alloc_to_text()
-rw-r--r--.bcachefs_revision2
-rw-r--r--libbcachefs/alloc_background.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/.bcachefs_revision b/.bcachefs_revision
index b1aa968d..307c0557 100644
--- a/.bcachefs_revision
+++ b/.bcachefs_revision
@@ -1 +1 @@
-7958ebe32438f58a0e59f240aa288b14efcc0964
+c801fa69f0e35d0e203af95fc59240f96a04d107
diff --git a/libbcachefs/alloc_background.c b/libbcachefs/alloc_background.c
index ae6ae78a..97d3ffb4 100644
--- a/libbcachefs/alloc_background.c
+++ b/libbcachefs/alloc_background.c
@@ -392,7 +392,10 @@ void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c
printbuf_indent_add(out, 2);
prt_printf(out, "gen %u oldest_gen %u data_type %s",
- a->gen, a->oldest_gen, bch2_data_types[a->data_type]);
+ a->gen, a->oldest_gen,
+ a->data_type < BCH_DATA_NR
+ ? bch2_data_types[a->data_type]
+ : "(invalid data type)");
prt_newline(out);
prt_printf(out, "journal_seq %llu", a->journal_seq);
prt_newline(out);