• Home
  • Raw
  • Download

Lines Matching refs:dev_replace

623 		WARN_ON(!fs_info->dev_replace.tgtdev);  in scrub_setup_ctx()
625 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
1143 &fs_info->dev_replace.num_write_errors); in scrub_handle_errored_block()
1583 atomic64_inc(&fs_info->dev_replace.num_write_errors); in scrub_repair_page_from_good_copy()
1610 atomic64_inc(&fs_info->dev_replace.num_write_errors); in scrub_write_block_to_dev_replace()
1735 struct btrfs_dev_replace *dev_replace = in scrub_wr_bio_end_io_worker() local
1736 &sbio->sctx->fs_info->dev_replace; in scrub_wr_bio_end_io_worker()
1742 atomic64_inc(&dev_replace->num_write_errors); in scrub_wr_bio_end_io_worker()
3485 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in scrub_enumerate_chunks() local
3623 down_write(&fs_info->dev_replace.rwsem); in scrub_enumerate_chunks()
3624 dev_replace->cursor_right = found_key.offset + length; in scrub_enumerate_chunks()
3625 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks()
3626 dev_replace->item_needs_writeback = 1; in scrub_enumerate_chunks()
3627 up_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
3664 down_write(&fs_info->dev_replace.rwsem); in scrub_enumerate_chunks()
3665 dev_replace->cursor_left = dev_replace->cursor_right; in scrub_enumerate_chunks()
3666 dev_replace->item_needs_writeback = 1; in scrub_enumerate_chunks()
3667 up_write(&fs_info->dev_replace.rwsem); in scrub_enumerate_chunks()
3692 atomic64_read(&dev_replace->num_write_errors) > 0) { in scrub_enumerate_chunks()
3875 down_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
3878 btrfs_dev_replace_is_ongoing(&fs_info->dev_replace))) { in btrfs_scrub_dev()
3879 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
3885 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()