bcachefs: Kill bch2_ec_mem_alloc()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 27 Dec 2021 03:27:10 +0000 (22:27 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commit13f914ecb99b84e6c10cbbeba375e41735239828
treee03dfd38fbb1ae330aabc914bbe8d17af6c67562
parent36f035e90804d30dba4336daafe1b89c9a8ffe98
bcachefs: Kill bch2_ec_mem_alloc()

bch2_ec_mem_alloc() was only used by GC, and there's no real need to
preallocate the stripes radix tree since we can cope fine with memory
allocation failure when we use the radix tree. This deletes a fair bit
of code, and it's also needed for the upcoming patch because
bch2_btree_iter_peek_prev() won't be working before journal replay
completes (and using it was incorrect previously, as well).

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/ec.c
fs/bcachefs/ec.h