Skip to content

Commit 4007bbb

Browse files
author
Kent Overstreet
committed
bcachefS: ec: fix data type on stripe deletion
Signed-off-by: Kent Overstreet <[email protected]>
1 parent a0d11fe commit 4007bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/bcachefs/ec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ static int __mark_stripe_bucket(struct btree_trans *trans,
266266
if (!deleting) {
267267
a->stripe = s.k->p.offset;
268268
a->stripe_redundancy = s.v->nr_redundant;
269+
alloc_data_type_set(a, data_type);
269270
} else {
270271
a->stripe = 0;
271272
a->stripe_redundancy = 0;
273+
alloc_data_type_set(a, BCH_DATA_user);
272274
}
273-
274-
alloc_data_type_set(a, data_type);
275275
err:
276276
printbuf_exit(&buf);
277277
return ret;

0 commit comments

Comments
 (0)