mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
bcachefS: ec: fix data type on stripe deletion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
a0d11feefb
commit
4007bbb203
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user