bcachefs: Convert bch2_check_lrus() to for_each_btree_key_commit()
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 17 Jul 2022 04:44:19 +0000 (00:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:36 +0000 (17:09 -0400)
commit1615505cdf2c681c72ca7ab742c9a3fd39fccfe3
treef50348debac6de03454e0cc46f7574a7094b6b36
parentca91f40ff79f432772660b1d10e04cfc71214458
bcachefs: Convert bch2_check_lrus() to for_each_btree_key_commit()

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/lru.c