bcachefs: Refactor bch2_btree_node_mem_alloc()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 5 Mar 2022 00:50:28 +0000 (19:50 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:26 +0000 (17:09 -0400)
commit5b3f780540aa5e39859a0c00ace61713da054a0f
treed225089ebd7b897086b44e7c6facf47fec185254
parentee68105f619b90ef7daef9f9ebab1270209d6151
bcachefs: Refactor bch2_btree_node_mem_alloc()

This is prep work for the next patch, which is going to fix our usage of
the percpu mode of six locks by never switching struct btree between the
two modes - which means we need separate freed lists.

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