bcachefs: Fix failure to read btree roots
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 13 Feb 2023 00:24:34 +0000 (19:24 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commit806c8a6aa83410cf78dc13fc63bb5df6352670f2
tree579b838a17253ef1aeb92098c9be7c2d11ae12ec
parent3277081522d8620f7410b173881d4b0267ce58f9
bcachefs: Fix failure to read btree roots

If failed to read a btree root - or if we're not using a btree root,
because of the reconstruct_alloc option - make sure we update the
corresponding info for the key/level for the root on disk.

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