Home
last modified time | relevance | path

Searched refs:bbio (Results 1 – 5 of 5) sorted by relevance

/fs/btrfs/
Dreada.c250 struct btrfs_bio *bbio) in reada_find_zone() argument
295 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone()
297 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone()
299 zone->ndevs = bbio->num_stripes; in reada_find_zone()
327 struct btrfs_bio *bbio = NULL; in reada_find_extent() local
361 ret = btrfs_map_block(map_tree, REQ_WRITE, logical, &length, &bbio, 0); in reada_find_extent()
362 if (ret || !bbio || length < blocksize) in reada_find_extent()
365 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent()
371 for (nzones = 0; nzones < bbio->num_stripes; ++nzones) { in reada_find_extent()
374 dev = bbio->stripes[nzones].dev; in reada_find_extent()
[all …]
Dvolumes.c3722 struct btrfs_bio *bbio = NULL; in __btrfs_map_block() local
3834 bbio = kzalloc(btrfs_bio_size(num_stripes), GFP_NOFS); in __btrfs_map_block()
3835 if (!bbio) { in __btrfs_map_block()
3839 atomic_set(&bbio->error, 0); in __btrfs_map_block()
3865 bbio->stripes[i].physical = in __btrfs_map_block()
3868 bbio->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block()
3872 bbio->stripes[i].length = stripes_per_dev * in __btrfs_map_block()
3876 bbio->stripes[i].length += in __btrfs_map_block()
3888 bbio->stripes[i].length -= in __btrfs_map_block()
3894 bbio->stripes[i].length -= in __btrfs_map_block()
[all …]
Dscrub.c976 struct btrfs_bio *bbio = NULL; in scrub_setup_recheck_block() local
983 &bbio, 0); in scrub_setup_recheck_block()
984 if (ret || !bbio || mapped_length < sublen) { in scrub_setup_recheck_block()
985 kfree(bbio); in scrub_setup_recheck_block()
990 for (mirror_index = 0; mirror_index < (int)bbio->num_stripes; in scrub_setup_recheck_block()
1001 page->physical = bbio->stripes[mirror_index].physical; in scrub_setup_recheck_block()
1003 page->bdev = bbio->stripes[mirror_index].dev->bdev; in scrub_setup_recheck_block()
1014 kfree(bbio); in scrub_setup_recheck_block()
Dextent_io.c1923 struct btrfs_bio *bbio = NULL; in repair_io_failure() local
1937 &map_length, &bbio, mirror_num); in repair_io_failure()
1942 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure()
1943 sector = bbio->stripes[mirror_num-1].physical >> 9; in repair_io_failure()
1945 dev = bbio->stripes[mirror_num-1].dev; in repair_io_failure()
1946 kfree(bbio); in repair_io_failure()
Dextent-tree.c1831 struct btrfs_bio *bbio = NULL; in btrfs_discard_extent() local
1836 bytenr, &num_bytes, &bbio, 0); in btrfs_discard_extent()
1839 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent()
1843 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
1862 kfree(bbio); in btrfs_discard_extent()