]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Journal read error message improvements
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 May 2025 16:21:57 +0000 (12:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 05:21:12 +0000 (01:21 -0400)
commitcd04497b10e6178a7510329465d05788b906ce5f
treef4257343bf89d61dea6b807824a944227fb87789
parent72ab5136e86fcbccebb4a423d83332f41a7bd697
bcachefs: Journal read error message improvements

- Don't print a checksum error when we first read a journal entry: we
  print a checksum error later if we'll be using the journal entry.

- Continuing with the theme of of improving error messages and grouping
  errors into a single log message per error, print a single 'checksum
  error' message per journal entry, and use bch2_journal_ptr_to_text()
  to print out where on the device it was.

- Factor out checksum error messages and checking for missing journal
  entries into helpers, bch2_journal_read() has gotten obnoxiously big.

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