bcachefs: Better journal tracepoints
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 15 Jan 2024 22:59:51 +0000 (17:59 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Jan 2024 18:27:09 +0000 (13:27 -0500)
commite6a2566f7a009b644fd84a43a6c1e3a53bb0bf00
tree8849edac47fc5dff4b60da31d13bc5278ca7bacc
parent4ae016607b907e69ed817ce14158adffb9b47978
bcachefs: Better journal tracepoints

Factor out bch2_journal_bufs_to_text(), and use it in the
journal_entry_full() tracepoint; when we can't get a journal reservation
we need to know the outstanding journal entry sizes to know if the
problem is due to excessive flushing.

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