Lines Matching refs:scrub_ctx
35 struct scrub_ctx;
83 struct scrub_ctx *sctx;
104 struct scrub_ctx *sctx;
121 struct scrub_ctx *sctx;
152 struct scrub_ctx { struct
207 static void scrub_pending_bio_inc(struct scrub_ctx *sctx); argument
208 static void scrub_pending_bio_dec(struct scrub_ctx *sctx);
233 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx,
235 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
247 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx,
249 static void scrub_wr_submit(struct scrub_ctx *sctx);
254 static void scrub_put_ctx(struct scrub_ctx *sctx);
262 static void scrub_pending_bio_inc(struct scrub_ctx *sctx) in scrub_pending_bio_inc()
268 static void scrub_pending_bio_dec(struct scrub_ctx *sctx) in scrub_pending_bio_dec()
533 static void scrub_free_csums(struct scrub_ctx *sctx) in scrub_free_csums()
544 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx()
575 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx()
581 static noinline_for_stack struct scrub_ctx *scrub_setup_ctx( in scrub_setup_ctx()
584 struct scrub_ctx *sctx; in scrub_setup_ctx()
830 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
1262 struct scrub_ctx *sctx = original_sblock->sctx; in scrub_setup_recheck_block()
1625 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx, in scrub_add_page_to_wr_bio()
1703 static void scrub_wr_submit(struct scrub_ctx *sctx) in scrub_wr_submit()
1737 struct scrub_ctx *sctx = sbio->sctx; in scrub_wr_bio_end_io_worker()
1798 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_data()
1841 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_tree_block()
1911 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_super()
2017 static void scrub_submit(struct scrub_ctx *sctx) in scrub_submit()
2030 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx, in scrub_add_page_to_rd_bio()
2119 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_worker()
2160 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_pages()
2219 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_pages()
2323 struct scrub_ctx *sctx = sbio->sctx; in scrub_bio_end_io_worker()
2433 static int scrub_find_csum(struct scrub_ctx *sctx, u64 logical, u8 *csum) in scrub_find_csum()
2468 static int scrub_extent(struct scrub_ctx *sctx, struct map_lookup *map, in scrub_extent()
2528 struct scrub_ctx *sctx = sparity->sctx; in scrub_pages_for_parity()
2612 struct scrub_ctx *sctx = sparity->sctx; in scrub_extent_for_parity()
2700 struct scrub_ctx *sctx = sparity->sctx; in scrub_free_parity()
2724 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_bio_endio_worker()
2748 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_check_and_repair()
2816 static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, in scrub_raid56_parity()
3041 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, in scrub_stripe()
3414 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, in scrub_chunk()
3467 int scrub_enumerate_chunks(struct scrub_ctx *sctx, in scrub_enumerate_chunks()
3707 static noinline_for_stack int scrub_supers(struct scrub_ctx *sctx, in scrub_supers()
3784 struct scrub_ctx *sctx; in btrfs_scrub_dev()
3865 if (dev->scrub_ctx || in btrfs_scrub_dev()
3884 dev->scrub_ctx = sctx; in btrfs_scrub_dev()
3929 dev->scrub_ctx = NULL; in btrfs_scrub_dev()
3995 struct scrub_ctx *sctx; in btrfs_scrub_cancel_dev()
3998 sctx = dev->scrub_ctx; in btrfs_scrub_cancel_dev()
4004 while (dev->scrub_ctx) { in btrfs_scrub_cancel_dev()
4007 dev->scrub_ctx == NULL); in btrfs_scrub_cancel_dev()
4019 struct scrub_ctx *sctx = NULL; in btrfs_scrub_progress()
4024 sctx = dev->scrub_ctx; in btrfs_scrub_progress()