bcachefs: Erasure coding now uses bch2_bucket_alloc_trans
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 18 Feb 2023 01:50:55 +0000 (20:50 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:53 +0000 (17:09 -0400)
commit2c7dd446d91681e90396c82e20c703b93f8daa2f
tree14cc13b3e4ba7844d4e8bb5cb9058a23fd517526
parent84ddb8b98e674c0d052dd56a406efc5275c9508a
bcachefs: Erasure coding now uses bch2_bucket_alloc_trans

This code predates plumbing btree_trans through the bucket allocation
path: switching to it fixes a deadlock due to using multiple btree_trans
at the same time, which we never want to do.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c
fs/bcachefs/alloc_foreground.h
fs/bcachefs/ec.c
fs/bcachefs/ec.h