Commit ccaa61c9 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix initial gc

Buckets weren't being marked as dirty
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6543f562
...@@ -559,12 +559,6 @@ static void bch2_gc_done(struct bch_fs *c, bool initial) ...@@ -559,12 +559,6 @@ static void bch2_gc_done(struct bch_fs *c, bool initial)
struct bucket_array *src = __bucket_array(ca, 1); struct bucket_array *src = __bucket_array(ca, 1);
size_t b; size_t b;
if (initial) {
memcpy(dst, src,
sizeof(struct bucket_array) +
sizeof(struct bucket) * dst->nbuckets);
}
for (b = 0; b < src->nbuckets; b++) { for (b = 0; b < src->nbuckets; b++) {
copy_bucket_field(gen); copy_bucket_field(gen);
copy_bucket_field(data_type); copy_bucket_field(data_type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment