]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: relock_fail tracepoint now includes btree
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 16 May 2025 21:21:00 +0000 (17:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:01 +0000 (20:15 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_locking.c

index a45cfae8f67180ddd23616fddcc7547743621d2f..6663e186a9603b9f3eb0fd1f599e6bff7c06fdb7 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include "bcachefs.h"
+#include "btree_cache.h"
 #include "btree_locking.h"
 #include "btree_types.h"
 
@@ -742,7 +743,9 @@ static noinline __cold int bch2_trans_relock_fail(struct btree_trans *trans, str
                struct printbuf buf = PRINTBUF;
 
                bch2_bpos_to_text(&buf, path->pos);
-               prt_printf(&buf, " l=%u seq=%u node seq=", f->l, path->l[f->l].lock_seq);
+               prt_printf(&buf, " %s l=%u seq=%u node seq=",
+                          bch2_btree_id_str(path->btree_id),
+                          f->l, path->l[f->l].lock_seq);
                if (IS_ERR_OR_NULL(f->b)) {
                        prt_str(&buf, bch2_err_str(PTR_ERR(f->b)));
                } else {