bcachefs: Don't quash error in bch2_bucket_alloc_set_trans()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 2 Oct 2022 03:54:46 +0000 (23:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:42 +0000 (17:09 -0400)
commit943f9946a6cc58e2c15ae39970547cddbe845190
treea9c6dc0560ec56db891dc9fde1d2776c5b262aac
parent685e0f0c477dfc2b2147a20137a349f25b0a1f62
bcachefs: Don't quash error in bch2_bucket_alloc_set_trans()

We were incorrectly returning -BCH_ERR_insufficient_devices when we'd
received a different error from bch2_bucket_alloc_trans(), which
(erronously) turns into -EROFS further up the call chain.

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