Lines Matching refs:scrub_ctx

47 struct scrub_ctx;
95 struct scrub_ctx *sctx;
116 struct scrub_ctx *sctx;
132 struct scrub_ctx *sctx;
171 struct scrub_ctx { struct
208 struct scrub_ctx *sctx; argument
224 struct scrub_ctx *sctx;
242 static void scrub_pending_bio_inc(struct scrub_ctx *sctx);
243 static void scrub_pending_bio_dec(struct scrub_ctx *sctx);
244 static void scrub_pending_trans_workers_inc(struct scrub_ctx *sctx);
245 static void scrub_pending_trans_workers_dec(struct scrub_ctx *sctx);
275 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx,
277 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
289 static int scrub_setup_wr_ctx(struct scrub_ctx *sctx,
295 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx,
297 static void scrub_wr_submit(struct scrub_ctx *sctx);
300 static int write_page_nocow(struct scrub_ctx *sctx,
304 static int copy_nocow_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
309 static void scrub_put_ctx(struct scrub_ctx *sctx);
312 static void scrub_pending_bio_inc(struct scrub_ctx *sctx) in scrub_pending_bio_inc()
318 static void scrub_pending_bio_dec(struct scrub_ctx *sctx) in scrub_pending_bio_dec()
352 static void scrub_pending_trans_workers_inc(struct scrub_ctx *sctx) in scrub_pending_trans_workers_inc()
384 static void scrub_pending_trans_workers_dec(struct scrub_ctx *sctx) in scrub_pending_trans_workers_dec()
402 static void scrub_free_csums(struct scrub_ctx *sctx) in scrub_free_csums()
413 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx()
445 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx()
452 struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace) in scrub_setup_ctx()
454 struct scrub_ctx *sctx; in scrub_setup_ctx()
801 struct scrub_ctx *sctx; in scrub_fixup_nodatasum()
890 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
1320 struct scrub_ctx *sctx = original_sblock->sctx; in scrub_setup_recheck_block()
1703 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx, in scrub_add_page_to_wr_bio()
1774 static void scrub_wr_submit(struct scrub_ctx *sctx) in scrub_wr_submit()
1809 struct scrub_ctx *sctx = sbio->sctx; in scrub_wr_bio_end_io_worker()
1858 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_data()
1902 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_tree_block()
1974 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_super()
2080 static void scrub_submit(struct scrub_ctx *sctx) in scrub_submit()
2107 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx, in scrub_add_page_to_rd_bio()
2181 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_pages()
2277 struct scrub_ctx *sctx = sbio->sctx; in scrub_bio_end_io_worker()
2384 static int scrub_find_csum(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_find_csum()
2418 static int scrub_extent(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_extent()
2478 struct scrub_ctx *sctx = sparity->sctx; in scrub_pages_for_parity()
2562 struct scrub_ctx *sctx = sparity->sctx; in scrub_extent_for_parity()
2645 struct scrub_ctx *sctx = sparity->sctx; in scrub_free_parity()
2668 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_bio_endio()
2681 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_check_and_repair()
2754 static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, in scrub_raid56_parity()
2957 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, in scrub_stripe()
3322 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, in scrub_chunk()
3366 int scrub_enumerate_chunks(struct scrub_ctx *sctx, in scrub_enumerate_chunks()
3521 static noinline_for_stack int scrub_supers(struct scrub_ctx *sctx, in scrub_supers()
3612 struct scrub_ctx *sctx; in btrfs_scrub_dev()
3802 struct scrub_ctx *sctx; in btrfs_scrub_cancel_dev()
3826 struct scrub_ctx *sctx = NULL; in btrfs_scrub_progress()
3864 static int scrub_setup_wr_ctx(struct scrub_ctx *sctx, in scrub_setup_wr_ctx()
3893 static int copy_nocow_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in copy_nocow_pages()
3944 struct scrub_ctx *sctx = nocow_ctx->sctx; in copy_nocow_pages_worker()
4190 static int write_page_nocow(struct scrub_ctx *sctx, in write_page_nocow()