projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d11fe
)
bcachefS: ec: fix data type on stripe deletion
author
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 16 Oct 2024 10:32:12 +0000
(06:32 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Fri, 18 Oct 2024 04:49:48 +0000
(
00:49
-0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/ec.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/ec.c
b/fs/bcachefs/ec.c
index
a230342
..
a0aa5bb
100644
(file)
--- 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;