bcachefs: Improve btree_path_relock_fail tracepoint
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Aug 2023 02:04:20 +0000 (22:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commit55d5276d2e7b7ac88a21a7ab89efd308734bb775
treec5105598967b296bc2685460e79ca493eaef31f7
parentd0445e131e3ff1a68492f7f6e754cd672db4774d
bcachefs: Improve btree_path_relock_fail tracepoint

In https://github.com/koverstreet/bcachefs/issues/450, we're seeing
unexplained btree_path_relock_fail events - according to the information
currently in the tracepoint, it appears the relock should be succeeding.

This adds lock counts to the tracepoint to help track it down.

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