bcachefs: Convert bch2_do_invalidates_work() to for_each_btree_key2()
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 17 Jul 2022 04:31:40 +0000 (00:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:36 +0000 (17:09 -0400)
commitd04801a0f452f022fcb278b6428853460db75ab8
treed81ad272aeaa60e03d725fd4efbc47cf20c8fe4d
parentdadecd02c49c7bb14c04445fc514c394e28c1ae3
bcachefs: Convert bch2_do_invalidates_work() to for_each_btree_key2()

The new for_each_btree_key2() macro handles transaction retries,
allowing us to avoid nested transactions - which we want to avoid since
they're tricky to do completely correctly and upcoming assertions are
going to be checking for that.

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