bcachefs: Trust in memory bucket mark
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 27 Aug 2019 21:34:03 +0000 (17:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:26 +0000 (17:08 -0400)
commit67163cded330c1d952ae440b21752f4b609585fd
treeec8dfe5060a3b9035ad9594ad1e4a701c800f32d
parent7d5224fcdc057a42fcd2d19bbc4d9f1c4808a83b
bcachefs: Trust in memory bucket mark

This fixes a bug in the journal replay -> extent_replay_key ->
split_compressed path, when we do an update that changes alloc info but
the alloc info in the btree isn't up to date yet.

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