|
|
@@ -592,6 +592,7 @@ static noinline_for_stack struct scrub_ctx *scrub_setup_ctx(
|
|
|
sctx->pages_per_rd_bio = SCRUB_PAGES_PER_RD_BIO;
|
|
|
sctx->curr = -1;
|
|
|
sctx->fs_info = fs_info;
|
|
|
+ INIT_LIST_HEAD(&sctx->csum_list);
|
|
|
for (i = 0; i < SCRUB_BIOS_PER_SCTX; ++i) {
|
|
|
struct scrub_bio *sbio;
|
|
|
|
|
|
@@ -616,7 +617,6 @@ static noinline_for_stack struct scrub_ctx *scrub_setup_ctx(
|
|
|
atomic_set(&sctx->workers_pending, 0);
|
|
|
atomic_set(&sctx->cancel_req, 0);
|
|
|
sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy);
|
|
|
- INIT_LIST_HEAD(&sctx->csum_list);
|
|
|
|
|
|
spin_lock_init(&sctx->list_lock);
|
|
|
spin_lock_init(&sctx->stat_lock);
|