summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_gc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-28 04:49:05 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:19 -0400
commitccaa61c9f6a9db28f2e0b480927f6f2c97ff72af (patch)
tree96710457ab5a0465cf9b8f9e056fe32c6264a6af /fs/bcachefs/btree_gc.c
parent6543f5620d81cfa7b52d00c7ade0f037beb7a71e (diff)
downloadlinux-stable-ccaa61c9f6a9db28f2e0b480927f6f2c97ff72af.tar.gz
linux-stable-ccaa61c9f6a9db28f2e0b480927f6f2c97ff72af.tar.bz2
linux-stable-ccaa61c9f6a9db28f2e0b480927f6f2c97ff72af.zip
bcachefs: fix initial gc
Buckets weren't being marked as dirty Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_gc.c')
-rw-r--r--fs/bcachefs/btree_gc.c6
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);