Home
last modified time | relevance | path

Searched refs:stripe (Results 1 – 6 of 6) sorted by relevance

/fs/btrfs/
Draid56.c1023 struct btrfs_bio_stripe *stripe; in rbio_add_io_page() local
1026 stripe = &rbio->bbio->stripes[stripe_nr]; in rbio_add_io_page()
1027 disk_start = stripe->physical + (page_index << PAGE_CACHE_SHIFT); in rbio_add_io_page()
1030 if (!stripe->dev->bdev) in rbio_add_io_page()
1042 if (last_end == disk_start && stripe->dev->bdev && in rbio_add_io_page()
1044 last->bi_bdev == stripe->dev->bdev) { in rbio_add_io_page()
1057 bio->bi_bdev = stripe->dev->bdev; in rbio_add_io_page()
1087 static struct page *rbio_stripe_page(struct btrfs_raid_bio *rbio, int stripe, int page) in rbio_stripe_page() argument
1090 index = stripe * (rbio->stripe_len >> PAGE_CACHE_SHIFT); in rbio_stripe_page()
1140 int stripe; in finish_rmw() local
[all …]
Dvolumes.c2981 struct btrfs_stripe *stripe; in chunk_devid_filter() local
2986 stripe = btrfs_stripe_nr(chunk, i); in chunk_devid_filter()
2987 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) in chunk_devid_filter()
3000 struct btrfs_stripe *stripe; in chunk_drange_filter() local
3022 stripe = btrfs_stripe_nr(chunk, i); in chunk_drange_filter()
3023 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) in chunk_drange_filter()
3026 stripe_offset = btrfs_stripe_offset(leaf, stripe); in chunk_drange_filter()
4522 struct btrfs_stripe *stripe; in btrfs_finish_chunk_alloc() local
4577 stripe = &chunk->stripe; in btrfs_finish_chunk_alloc()
4582 btrfs_set_stack_stripe_devid(stripe, device->devid); in btrfs_finish_chunk_alloc()
[all …]
Dextent-tree.c1905 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent() local
1909 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
1910 if (!stripe->dev->can_discard) in btrfs_discard_extent()
1913 ret = btrfs_issue_discard(stripe->dev->bdev, in btrfs_discard_extent()
1914 stripe->physical, in btrfs_discard_extent()
1915 stripe->length); in btrfs_discard_extent()
1917 discarded_bytes += stripe->length; in btrfs_discard_extent()
Dctree.h313 struct btrfs_stripe stripe; member
2327 offset += offsetof(struct btrfs_chunk, stripe); in btrfs_stripe_nr()
/fs/nfs/blocklayout/
Ddev.c102 p = xdr_decode_hyper(p, &b->stripe.chunk_size); in nfs4_block_decode_volume()
103 b->stripe.volumes_count = be32_to_cpup(p++); in nfs4_block_decode_volume()
105 p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); in nfs4_block_decode_volume()
108 for (i = 0; i < b->stripe.volumes_count; i++) in nfs4_block_decode_volume()
109 b->stripe.volumes[i] = be32_to_cpup(p++); in nfs4_block_decode_volume()
267 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe()
272 for (i = 0; i < v->stripe.volumes_count; i++) { in bl_parse_stripe()
274 volumes, v->stripe.volumes[i], gfp_mask); in bl_parse_stripe()
283 d->chunk_size = v->stripe.chunk_size; in bl_parse_stripe()
Dblocklayout.h91 } stripe; member