diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index d658be90f737..f3ba1bbaf80e 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -18,6 +18,7 @@ #include "lru.h" #include "move.h" #include "movinggc.h" +#include "move_types.h" #include "trace.h" #include @@ -336,7 +337,8 @@ static int bch2_copygc_thread(void *arg) kfree(buckets); return ret; } - + memset(&buckets->first, 0, sizeof(struct move_bucket_in_flight)); + memset(&buckets->last, 0, sizeof(struct move_bucket_in_flight)); set_freezable(); bch2_move_stats_init(&move_stats, "copygc");