Lines Matching refs:scrub_ctx

38 struct scrub_ctx;
86 struct scrub_ctx *sctx;
107 struct scrub_ctx *sctx;
124 struct scrub_ctx *sctx;
155 struct scrub_ctx { struct
210 static void scrub_pending_bio_inc(struct scrub_ctx *sctx); argument
211 static void scrub_pending_bio_dec(struct scrub_ctx *sctx);
236 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx,
238 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
250 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx,
252 static void scrub_wr_submit(struct scrub_ctx *sctx);
257 static void scrub_put_ctx(struct scrub_ctx *sctx);
265 static void scrub_pending_bio_inc(struct scrub_ctx *sctx) in scrub_pending_bio_inc()
271 static void scrub_pending_bio_dec(struct scrub_ctx *sctx) in scrub_pending_bio_dec()
527 static void scrub_free_csums(struct scrub_ctx *sctx) in scrub_free_csums()
538 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx()
569 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx()
575 static noinline_for_stack struct scrub_ctx *scrub_setup_ctx( in scrub_setup_ctx()
578 struct scrub_ctx *sctx; in scrub_setup_ctx()
823 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
1268 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()
1692 static void scrub_wr_submit(struct scrub_ctx *sctx) in scrub_wr_submit()
1725 struct scrub_ctx *sctx = sbio->sctx; in scrub_wr_bio_end_io_worker()
1785 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_data()
1811 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_tree_block()
1868 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_super()
1952 static void scrub_submit(struct scrub_ctx *sctx) in scrub_submit()
1965 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx, in scrub_add_page_to_rd_bio()
2054 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_worker()
2095 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_pages()
2153 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_pages()
2257 struct scrub_ctx *sctx = sbio->sctx; in scrub_bio_end_io_worker()
2367 static int scrub_find_csum(struct scrub_ctx *sctx, u64 logical, u8 *csum) in scrub_find_csum()
2402 static int scrub_extent(struct scrub_ctx *sctx, struct map_lookup *map, in scrub_extent()
2462 struct scrub_ctx *sctx = sparity->sctx; in scrub_pages_for_parity()
2546 struct scrub_ctx *sctx = sparity->sctx; in scrub_extent_for_parity()
2634 struct scrub_ctx *sctx = sparity->sctx; in scrub_free_parity()
2658 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_bio_endio_worker()
2682 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_check_and_repair()
2750 static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, in scrub_raid56_parity()
2975 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, in scrub_stripe()
3364 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, in scrub_chunk()
3417 int scrub_enumerate_chunks(struct scrub_ctx *sctx, in scrub_enumerate_chunks()
3691 static noinline_for_stack int scrub_supers(struct scrub_ctx *sctx, in scrub_supers()
3810 struct scrub_ctx *sctx; in btrfs_scrub_dev()
3894 if (dev->scrub_ctx || in btrfs_scrub_dev()
3906 dev->scrub_ctx = sctx; in btrfs_scrub_dev()
3972 dev->scrub_ctx = NULL; in btrfs_scrub_dev()
4051 struct scrub_ctx *sctx; in btrfs_scrub_cancel_dev()
4054 sctx = dev->scrub_ctx; in btrfs_scrub_cancel_dev()
4060 while (dev->scrub_ctx) { in btrfs_scrub_cancel_dev()
4063 dev->scrub_ctx == NULL); in btrfs_scrub_cancel_dev()
4075 struct scrub_ctx *sctx = NULL; in btrfs_scrub_progress()
4080 sctx = dev->scrub_ctx; in btrfs_scrub_progress()