bcachefs: Drop alloc keys from journal when -o reconstruct_alloc
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 25 Oct 2020 01:20:16 +0000 (21:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:45 +0000 (17:08 -0400)
commit33114c2d897405ec338df979d1bf1d3319f92938
treecd05ca271bd49d93835d883483d2e5142986f724
parent801a3de6427924d87ecc7e218a99ad3245ee8290
bcachefs: Drop alloc keys from journal when -o reconstruct_alloc

This fixes a bug where we'd pop an assertion due to replaying a key for
an interior btree node when that node no longer exists.

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