bcachefs: Improve trace_trans_restart_upgrade
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 21 May 2025 07:19:18 +0000 (03:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:11 +0000 (20:15 -0400)
commit136d082abc2adcdc10a472e29710826eee7f5f80
tree310553ca11259cc686b8f1d42466c360cf2f43f5
parentf638b84224348dd58a348617e6f648e967e1b1ce
bcachefs: Improve trace_trans_restart_upgrade

- Convert to a 'fs_str' tracepoint that just emits as a string: this
  lets us build up the tracepoint with a printbuf, using our pretty
  printers, and they're much easier to manage

- Include locks_held, before and after

- Include the btree node pointer we failed on (error pointer, null, or
  real node)

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