bcachefs: Fix freespace initialization
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 10 Jun 2022 23:39:00 +0000 (19:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:33 +0000 (17:09 -0400)
commitdf8c2ccb9309f342724f3104fd9d68d7e4ce65da
treed984bdddf494fdb7bbf3fff22d1d8445eeaafa00
parent401ec4db630802729f10d53ad995083ced98caca
bcachefs: Fix freespace initialization

bch2_dev_freespace_init() was using __bch2_trans_do() incorrectly, and
calling bch2_bucket_do_index() with a stale alloc key.

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