Searched refs:stripe (Results 1 – 7 of 7) sorted by relevance
/fs/btrfs/ |
D | raid56.c | 607 static int rbio_stripe_page_index(struct btrfs_raid_bio *rbio, int stripe, in rbio_stripe_page_index() argument 610 return stripe * rbio->stripe_npages + index; in rbio_stripe_page_index() 617 static struct page *rbio_stripe_page(struct btrfs_raid_bio *rbio, int stripe, in rbio_stripe_page() argument 620 return rbio->stripe_pages[rbio_stripe_page_index(rbio, stripe, index)]; in rbio_stripe_page() 1088 struct btrfs_io_stripe *stripe; in rbio_add_io_page() local 1091 stripe = &rbio->bioc->stripes[stripe_nr]; in rbio_add_io_page() 1092 disk_start = stripe->physical + (page_index << PAGE_SHIFT); in rbio_add_io_page() 1095 if (!stripe->dev->bdev) in rbio_add_io_page() 1108 last->bi_bdev == stripe->dev->bdev) { in rbio_add_io_page() 1117 btrfs_io_bio(bio)->device = stripe->dev; in rbio_add_io_page() [all …]
|
D | extent_map.c | 363 struct btrfs_io_stripe *stripe = &map->stripes[i]; in extent_map_device_set_bits() local 364 struct btrfs_device *device = stripe->dev; in extent_map_device_set_bits() 366 set_extent_bits_nowait(&device->alloc_state, stripe->physical, in extent_map_device_set_bits() 367 stripe->physical + stripe_size - 1, bits); in extent_map_device_set_bits() 378 struct btrfs_io_stripe *stripe = &map->stripes[i]; in extent_map_device_clear_bits() local 379 struct btrfs_device *device = stripe->dev; in extent_map_device_clear_bits() 381 __clear_extent_bit(&device->alloc_state, stripe->physical, in extent_map_device_clear_bits() 382 stripe->physical + stripe_size - 1, bits, in extent_map_device_clear_bits()
|
D | volumes.c | 3681 struct btrfs_stripe *stripe; in chunk_devid_filter() local 3686 stripe = btrfs_stripe_nr(chunk, i); in chunk_devid_filter() 3687 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) in chunk_devid_filter() 3708 struct btrfs_stripe *stripe; in chunk_drange_filter() local 3723 stripe = btrfs_stripe_nr(chunk, i); in chunk_drange_filter() 3724 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) in chunk_drange_filter() 3727 stripe_offset = btrfs_stripe_offset(leaf, stripe); in chunk_drange_filter() 5564 struct btrfs_stripe *stripe; in btrfs_chunk_alloc_add_chunk_item() local 5620 stripe = &chunk->stripe; in btrfs_chunk_alloc_add_chunk_item() 5625 btrfs_set_stack_stripe_devid(stripe, device->devid); in btrfs_chunk_alloc_add_chunk_item() [all …]
|
D | extent-tree.c | 1275 static int do_discard_extent(struct btrfs_io_stripe *stripe, u64 *bytes) in do_discard_extent() argument 1277 struct btrfs_device *dev = stripe->dev; in do_discard_extent() 1280 u64 phys = stripe->physical; in do_discard_extent() 1281 u64 len = stripe->length; in do_discard_extent() 1303 } else if (blk_queue_discard(bdev_get_queue(stripe->dev->bdev))) { in do_discard_extent() 1330 struct btrfs_io_stripe *stripe; in btrfs_discard_extent() local 1345 stripe = bioc->stripes; in btrfs_discard_extent() 1346 for (i = 0; i < bioc->num_stripes; i++, stripe++) { in btrfs_discard_extent() 1348 struct btrfs_device *device = stripe->dev; in btrfs_discard_extent() 1358 ret = do_discard_extent(stripe, &bytes); in btrfs_discard_extent()
|
D | ctree.h | 1775 offset += offsetof(struct btrfs_chunk, stripe); in btrfs_stripe_nr()
|
/fs/nfs/blocklayout/ |
D | dev.c | 127 p = xdr_decode_hyper(p, &b->stripe.chunk_size); in nfs4_block_decode_volume() 128 b->stripe.volumes_count = be32_to_cpup(p++); in nfs4_block_decode_volume() 129 if (b->stripe.volumes_count > PNFS_BLOCK_MAX_DEVICES) { in nfs4_block_decode_volume() 130 dprintk("Too many volumes: %d\n", b->stripe.volumes_count); in nfs4_block_decode_volume() 134 p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); in nfs4_block_decode_volume() 137 for (i = 0; i < b->stripe.volumes_count; i++) in nfs4_block_decode_volume() 138 b->stripe.volumes[i] = be32_to_cpup(p++); in nfs4_block_decode_volume() 453 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe() 458 for (i = 0; i < v->stripe.volumes_count; i++) { in bl_parse_stripe() 460 volumes, v->stripe.volumes[i], gfp_mask); in bl_parse_stripe() [all …]
|
D | blocklayout.h | 83 } stripe; member
|