diff options
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 669bedfec4a9..a99588536c79 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c | |||
@@ -584,6 +584,7 @@ static noinline_for_stack struct scrub_ctx *scrub_setup_ctx( | |||
584 | sctx->pages_per_rd_bio = SCRUB_PAGES_PER_RD_BIO; | 584 | sctx->pages_per_rd_bio = SCRUB_PAGES_PER_RD_BIO; |
585 | sctx->curr = -1; | 585 | sctx->curr = -1; |
586 | sctx->fs_info = fs_info; | 586 | sctx->fs_info = fs_info; |
587 | INIT_LIST_HEAD(&sctx->csum_list); | ||
587 | for (i = 0; i < SCRUB_BIOS_PER_SCTX; ++i) { | 588 | for (i = 0; i < SCRUB_BIOS_PER_SCTX; ++i) { |
588 | struct scrub_bio *sbio; | 589 | struct scrub_bio *sbio; |
589 | 590 | ||
@@ -608,7 +609,6 @@ static noinline_for_stack struct scrub_ctx *scrub_setup_ctx( | |||
608 | atomic_set(&sctx->workers_pending, 0); | 609 | atomic_set(&sctx->workers_pending, 0); |
609 | atomic_set(&sctx->cancel_req, 0); | 610 | atomic_set(&sctx->cancel_req, 0); |
610 | sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); | 611 | sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); |
611 | INIT_LIST_HEAD(&sctx->csum_list); | ||
612 | 612 | ||
613 | spin_lock_init(&sctx->list_lock); | 613 | spin_lock_init(&sctx->list_lock); |
614 | spin_lock_init(&sctx->stat_lock); | 614 | spin_lock_init(&sctx->stat_lock); |