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()
523 static void scrub_free_csums(struct scrub_ctx *sctx) in scrub_free_csums()
534 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx()
565 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx()
572 struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace) in scrub_setup_ctx()
574 struct scrub_ctx *sctx; in scrub_setup_ctx()
821 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
1253 struct scrub_ctx *sctx = original_sblock->sctx; in scrub_setup_recheck_block()
1616 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx, in scrub_add_page_to_wr_bio()
1683 static void scrub_wr_submit(struct scrub_ctx *sctx) in scrub_wr_submit()
1717 struct scrub_ctx *sctx = sbio->sctx; in scrub_wr_bio_end_io_worker()
1778 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_data()
1821 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_tree_block()
1891 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_super()
1997 static void scrub_submit(struct scrub_ctx *sctx) in scrub_submit()
2010 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx, in scrub_add_page_to_rd_bio()
2099 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_worker()
2141 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_pages()
2200 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_pages()
2304 struct scrub_ctx *sctx = sbio->sctx; in scrub_bio_end_io_worker()
2414 static int scrub_find_csum(struct scrub_ctx *sctx, u64 logical, u8 *csum) in scrub_find_csum()
2449 static int scrub_extent(struct scrub_ctx *sctx, struct map_lookup *map, in scrub_extent()
2509 struct scrub_ctx *sctx = sparity->sctx; in scrub_pages_for_parity()
2593 struct scrub_ctx *sctx = sparity->sctx; in scrub_extent_for_parity()
2681 struct scrub_ctx *sctx = sparity->sctx; in scrub_free_parity()
2705 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_bio_endio_worker()
2729 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_check_and_repair()
2797 static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, in scrub_raid56_parity()
3022 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, in scrub_stripe()
3396 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, in scrub_chunk()
3451 int scrub_enumerate_chunks(struct scrub_ctx *sctx, in scrub_enumerate_chunks()
3692 static noinline_for_stack int scrub_supers(struct scrub_ctx *sctx, in scrub_supers()
3779 struct scrub_ctx *sctx; in btrfs_scrub_dev()
3849 if (dev->scrub_ctx || in btrfs_scrub_dev()
3874 dev->scrub_ctx = sctx; in btrfs_scrub_dev()
3909 dev->scrub_ctx = NULL; in btrfs_scrub_dev()
3963 struct scrub_ctx *sctx; in btrfs_scrub_cancel_dev()
3966 sctx = dev->scrub_ctx; in btrfs_scrub_cancel_dev()
3972 while (dev->scrub_ctx) { in btrfs_scrub_cancel_dev()
3975 dev->scrub_ctx == NULL); in btrfs_scrub_cancel_dev()
3987 struct scrub_ctx *sctx = NULL; in btrfs_scrub_progress()
3992 sctx = dev->scrub_ctx; in btrfs_scrub_progress()