From: Kent Overstreet Date: Wed, 16 Oct 2024 10:32:12 +0000 (-0400) Subject: bcachefS: ec: fix data type on stripe deletion X-Git-Tag: v6.12-rc5~28^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4007bbb203a0c36e66bb2e785e1b2cb7266179d5;p=thirdparty%2Fkernel%2Flinux.git bcachefS: ec: fix data type on stripe deletion Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c index a2303425959da..a0aa5bb467d94 100644 --- a/fs/bcachefs/ec.c +++ b/fs/bcachefs/ec.c @@ -266,12 +266,12 @@ static int __mark_stripe_bucket(struct btree_trans *trans, if (!deleting) { a->stripe = s.k->p.offset; a->stripe_redundancy = s.v->nr_redundant; + alloc_data_type_set(a, data_type); } else { a->stripe = 0; a->stripe_redundancy = 0; + alloc_data_type_set(a, BCH_DATA_user); } - - alloc_data_type_set(a, data_type); err: printbuf_exit(&buf); return ret;