bcachefs: Improve btree_node_relock_fail tracepoint
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 27 Aug 2022 16:11:18 +0000 (12:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commit5f1dd9a633dd0aa8429742cdba08d9566f49177b
tree1eb04797c45ceaf01b9f962b5daf4c274e023889
parentb1cdc398ae36689300b4108ce9c90c58cac1ba34
bcachefs: Improve btree_node_relock_fail tracepoint

It now prints the error name when the btree node is an error pointer;
also, don't trace failures when the the btree node is
BCH_ERR_no_btree_node_up.

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