summaryrefslogtreecommitdiff
path: root/libbcachefs/io_read.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-07 20:09:25 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-07 20:12:25 -0400
commit25c580652a8a7ed83f71e6762eaea8dba06f538b (patch)
treeb344c74f75133fb69b34874b827a46cb96b27f8e /libbcachefs/io_read.c
parenta0f12e09b6e8a5c04855883565a5f93dd808d6f1 (diff)
Update bcachefs sources to 4e917bf40142 bcachefs: __bch2_btree_node_alloc() now respects target
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/io_read.c')
-rw-r--r--libbcachefs/io_read.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libbcachefs/io_read.c b/libbcachefs/io_read.c
index 210b6adc..fa56ff67 100644
--- a/libbcachefs/io_read.c
+++ b/libbcachefs/io_read.c
@@ -343,7 +343,16 @@ static struct bch_read_bio *promote_alloc(struct btree_trans *trans,
return promote;
nopromote:
- trace_io_read_nopromote(c, ret);
+ if (trace_io_read_nopromote_enabled()) {
+ CLASS(printbuf, buf)();
+ printbuf_indent_add_nextline(&buf, 2);
+ prt_printf(&buf, "%s\n", bch2_err_str(ret));
+ bch2_bkey_val_to_text(&buf, c, k);
+
+ trace_io_read_nopromote(c, buf.buf);
+ }
+ count_event(c, io_read_nopromote);
+
return NULL;
}