Lines Matching refs:scrub_ctx

47 struct scrub_ctx;
95 struct scrub_ctx *sctx;
116 struct scrub_ctx *sctx;
133 struct scrub_ctx *sctx;
172 struct scrub_ctx { struct
209 struct scrub_ctx *sctx; argument
225 struct scrub_ctx *sctx;
243 static void scrub_pending_bio_inc(struct scrub_ctx *sctx);
244 static void scrub_pending_bio_dec(struct scrub_ctx *sctx);
245 static void scrub_pending_trans_workers_inc(struct scrub_ctx *sctx);
246 static void scrub_pending_trans_workers_dec(struct scrub_ctx *sctx);
271 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx,
273 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
285 static int scrub_setup_wr_ctx(struct scrub_ctx *sctx,
291 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx,
293 static void scrub_wr_submit(struct scrub_ctx *sctx);
296 static int write_page_nocow(struct scrub_ctx *sctx,
300 static int copy_nocow_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
305 static void scrub_put_ctx(struct scrub_ctx *sctx);
308 static void scrub_pending_bio_inc(struct scrub_ctx *sctx) in scrub_pending_bio_inc()
314 static void scrub_pending_bio_dec(struct scrub_ctx *sctx) in scrub_pending_bio_dec()
357 static void scrub_pending_trans_workers_inc(struct scrub_ctx *sctx) in scrub_pending_trans_workers_inc()
389 static void scrub_pending_trans_workers_dec(struct scrub_ctx *sctx) in scrub_pending_trans_workers_dec()
407 static void scrub_free_csums(struct scrub_ctx *sctx) in scrub_free_csums()
418 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx()
450 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx()
457 struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace) in scrub_setup_ctx()
459 struct scrub_ctx *sctx; in scrub_setup_ctx()
793 struct scrub_ctx *sctx; in scrub_fixup_nodatasum()
882 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
1303 struct scrub_ctx *sctx = original_sblock->sctx; in scrub_setup_recheck_block()
1648 static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx, in scrub_add_page_to_wr_bio()
1719 static void scrub_wr_submit(struct scrub_ctx *sctx) in scrub_wr_submit()
1754 struct scrub_ctx *sctx = sbio->sctx; in scrub_wr_bio_end_io_worker()
1815 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_data()
1858 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_tree_block()
1929 struct scrub_ctx *sctx = sblock->sctx; in scrub_checksum_super()
2035 static void scrub_submit(struct scrub_ctx *sctx) in scrub_submit()
2048 static int scrub_add_page_to_rd_bio(struct scrub_ctx *sctx, in scrub_add_page_to_rd_bio()
2136 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_worker()
2178 struct scrub_ctx *sctx = sblock->sctx; in scrub_missing_raid56_pages()
2238 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_pages()
2342 struct scrub_ctx *sctx = sbio->sctx; in scrub_bio_end_io_worker()
2449 static int scrub_find_csum(struct scrub_ctx *sctx, u64 logical, u8 *csum) in scrub_find_csum()
2482 static int scrub_extent(struct scrub_ctx *sctx, u64 logical, u64 len, in scrub_extent()
2542 struct scrub_ctx *sctx = sparity->sctx; in scrub_pages_for_parity()
2626 struct scrub_ctx *sctx = sparity->sctx; in scrub_extent_for_parity()
2714 struct scrub_ctx *sctx = sparity->sctx; in scrub_free_parity()
2738 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_bio_endio_worker()
2762 struct scrub_ctx *sctx = sparity->sctx; in scrub_parity_check_and_repair()
2834 static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, in scrub_raid56_parity()
3056 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, in scrub_stripe()
3432 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, in scrub_chunk()
3487 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()
3791 struct scrub_ctx *sctx; in btrfs_scrub_dev()
3981 struct scrub_ctx *sctx; in btrfs_scrub_cancel_dev()
4005 struct scrub_ctx *sctx = NULL; in btrfs_scrub_progress()
4043 static int scrub_setup_wr_ctx(struct scrub_ctx *sctx, in scrub_setup_wr_ctx()
4071 static int copy_nocow_pages(struct scrub_ctx *sctx, u64 logical, u64 len, in copy_nocow_pages()
4122 struct scrub_ctx *sctx = nocow_ctx->sctx; in copy_nocow_pages_worker()
4368 static int write_page_nocow(struct scrub_ctx *sctx, in write_page_nocow()