Lines Matching refs:smap
497 struct btrfs_io_stripe *smap, int mirror_num) in __btrfs_submit_bio() argument
502 bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT; in __btrfs_submit_bio()
504 btrfs_bio(bio)->orig_physical = smap->physical; in __btrfs_submit_bio()
505 bio->bi_private = smap->dev; in __btrfs_submit_bio()
507 btrfs_submit_dev_bio(smap->dev, bio); in __btrfs_submit_bio()
540 struct btrfs_io_stripe smap; member
590 __btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done()
625 struct btrfs_io_stripe *smap, int mirror_num) in btrfs_wq_submit_bio() argument
636 async->smap = *smap; in btrfs_wq_submit_bio()
655 struct btrfs_io_stripe smap; in btrfs_submit_chunk() local
661 &bioc, &smap, &mirror_num, 1); in btrfs_submit_chunk()
701 btrfs_wq_submit_bio(bbio, bioc, &smap, mirror_num)) in btrfs_submit_chunk()
716 __btrfs_submit_bio(bio, bioc, &smap, mirror_num); in btrfs_submit_chunk()
764 struct btrfs_io_stripe smap = { 0 }; in btrfs_repair_io_failure() local
781 ret = btrfs_map_repair_block(fs_info, &smap, logical, length, mirror_num); in btrfs_repair_io_failure()
785 if (!smap.dev->bdev || in btrfs_repair_io_failure()
786 !test_bit(BTRFS_DEV_STATE_WRITEABLE, &smap.dev->dev_state)) { in btrfs_repair_io_failure()
791 bio_init(&bio, smap.dev->bdev, &bvec, 1, REQ_OP_WRITE | REQ_SYNC); in btrfs_repair_io_failure()
792 bio.bi_iter.bi_sector = smap.physical >> SECTOR_SHIFT; in btrfs_repair_io_failure()
799 btrfs_dev_stat_inc_and_print(smap.dev, BTRFS_DEV_STAT_WRITE_ERRS); in btrfs_repair_io_failure()
805 ino, start, btrfs_dev_name(smap.dev), in btrfs_repair_io_failure()
806 smap.physical >> SECTOR_SHIFT); in btrfs_repair_io_failure()
826 struct btrfs_io_stripe smap = { 0 }; in btrfs_submit_repair_write() local
835 ret = btrfs_map_repair_block(fs_info, &smap, logical, length, mirror_num); in btrfs_submit_repair_write()
840 ASSERT(smap.dev == fs_info->dev_replace.srcdev); in btrfs_submit_repair_write()
841 smap.dev = fs_info->dev_replace.tgtdev; in btrfs_submit_repair_write()
843 __btrfs_submit_bio(&bbio->bio, NULL, &smap, mirror_num); in btrfs_submit_repair_write()