bcachefs: Also log overwrites in journal
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 5 Jun 2022 19:32:57 +0000 (15:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:33 +0000 (17:09 -0400)
commitcb685ce72cc7e91733d3197346bbfe61e8ad54eb
tree77873fed0352434a42814fc09453cbf46f387af1
parent43ddf4483491b3dff8e050f57b595c34822cb6de
bcachefs: Also log overwrites in journal

Lately we've been doing a lot of debugging by looking at the journal to
see what was changed, and by what code path. This patch adds a new
journal entry type for recording overwrites, so that we don't have to
search backwards through the journal to see what was being overwritten
in order to work out what the triggers were supposed to be doing.

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