bcachefs: Fix bch2_check_alloc_key()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 27 Jun 2022 00:34:34 +0000 (20:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000 (17:09 -0400)
commit47ab0c5f6a1e6ac1e9387181585fb39393fec4ea
treead07ef5e287d15fd806c121bc406f3f1e3e4830b
parente34da43e33f8c0b42b74bf9aa86042d16884183b
bcachefs: Fix bch2_check_alloc_key()

bch2_check_alloc_key() was failing to check buckets that didn't have
alloc keys yet (because they'd never been used) - they still need to be
added to the freespace btree.

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