bcachefs: Improve diagnostics when journal entries are missing
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 26 Jan 2021 21:04:12 +0000 (16:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:52 +0000 (17:08 -0400)
commite4c3f386b62d8f7e917b26089c7dea374f7c1fb6
tree24ebc629561aebad02dbe362f615d30771bf41bb
parent522c25f068bd5df5e1bc623e855262afd90e4a05
bcachefs: Improve diagnostics when journal entries are missing

There's an outstanding bug with journal entries being missing in journal
replay. This patch adds code to print out where the journal entries were
physically located that were around the entry(ies) being missing, which
should make debugging easier.

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