diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-28 11:49:05 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:19 +0300 |
commit | ccaa61c9f6a9db28f2e0b480927f6f2c97ff72af (patch) | |
tree | 96710457ab5a0465cf9b8f9e056fe32c6264a6af | |
parent | 6543f5620d81cfa7b52d00c7ade0f037beb7a71e (diff) | |
download | linux-ccaa61c9f6a9db28f2e0b480927f6f2c97ff72af.tar.xz |
bcachefs: fix initial gc
Buckets weren't being marked as dirty
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/btree_gc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index 5abd7ac5bb78..b5a4ac9a4176 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -559,12 +559,6 @@ static void bch2_gc_done(struct bch_fs *c, bool initial) struct bucket_array *src = __bucket_array(ca, 1); size_t b; - if (initial) { - memcpy(dst, src, - sizeof(struct bucket_array) + - sizeof(struct bucket) * dst->nbuckets); - } - for (b = 0; b < src->nbuckets; b++) { copy_bucket_field(gen); copy_bucket_field(data_type); |