Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/md/
Ddm-stripe.c20 struct stripe { struct
43 struct stripe stripe[0]; argument
61 if (dm_array_too_big(sizeof(struct stripe_c), sizeof(struct stripe), in alloc_context()
65 len = sizeof(struct stripe_c) + (sizeof(struct stripe) * stripes); in alloc_context()
74 unsigned int stripe, char **argv) in get_stripe() argument
84 &sc->stripe[stripe].dev); in get_stripe()
88 sc->stripe[stripe].physical_start = start; in get_stripe()
189 dm_put_device(ti, sc->stripe[i].dev); in stripe_ctr()
193 atomic_set(&(sc->stripe[i].error_count), 0); in stripe_ctr()
207 dm_put_device(ti, sc->stripe[i].dev); in stripe_dtr()
[all …]
Draid0.c416 int stripe = mddev->raid_disks * in raid0_run() local
418 if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) in raid0_run()
419 mddev->queue->backing_dev_info.ra_pages = 2* stripe; in raid0_run()
Draid5.c516 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
2538 sector_t stripe, stripe2; in raid5_compute_sector() local
2563 stripe = chunk_number; in raid5_compute_sector()
2564 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector()
2565 stripe2 = stripe; in raid5_compute_sector()
2732 new_sector = (sector_t)stripe * sectors_per_chunk + chunk_offset; in raid5_compute_sector()
2746 sector_t stripe; in raid5_compute_blocknr() local
2754 stripe = new_sector; in raid5_compute_blocknr()
2842 chunk_number = stripe * data_disks + i; in raid5_compute_blocknr()
3054 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx() argument
[all …]
DMakefile5 dm-mod-y += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
Draid10.c557 sector_t stripe; in __raid10_find_phys() local
573 stripe = chunk; in __raid10_find_phys()
574 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys()
576 stripe *= geo->far_copies; in __raid10_find_phys()
578 sector += stripe << geo->chunk_shift; in __raid10_find_phys()
3674 int stripe = conf->geo.raid_disks * in run() local
3681 stripe /= conf->geo.near_copies; in run()
3682 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) in run()
3683 mddev->queue->backing_dev_info.ra_pages = 2 * stripe; in run()
4474 int stripe = conf->geo.raid_disks * in end_reshape() local
[all …]
/linux-4.4.14/fs/btrfs/
Draid56.c1066 struct btrfs_bio_stripe *stripe; in rbio_add_io_page() local
1069 stripe = &rbio->bbio->stripes[stripe_nr]; in rbio_add_io_page()
1070 disk_start = stripe->physical + (page_index << PAGE_CACHE_SHIFT); in rbio_add_io_page()
1073 if (!stripe->dev->bdev) in rbio_add_io_page()
1085 if (last_end == disk_start && stripe->dev->bdev && in rbio_add_io_page()
1087 last->bi_bdev == stripe->dev->bdev) { in rbio_add_io_page()
1100 bio->bi_bdev = stripe->dev->bdev; in rbio_add_io_page()
1129 static struct page *rbio_stripe_page(struct btrfs_raid_bio *rbio, int stripe, int page) in rbio_stripe_page() argument
1132 index = stripe * (rbio->stripe_len >> PAGE_CACHE_SHIFT); in rbio_stripe_page()
1182 int stripe; in finish_rmw() local
[all …]
Dvolumes.c3188 struct btrfs_stripe *stripe; in chunk_devid_filter() local
3193 stripe = btrfs_stripe_nr(chunk, i); in chunk_devid_filter()
3194 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) in chunk_devid_filter()
3207 struct btrfs_stripe *stripe; in chunk_drange_filter() local
3229 stripe = btrfs_stripe_nr(chunk, i); in chunk_drange_filter()
3230 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) in chunk_drange_filter()
3233 stripe_offset = btrfs_stripe_offset(leaf, stripe); in chunk_drange_filter()
4789 struct btrfs_stripe *stripe; in btrfs_finish_chunk_alloc() local
4844 stripe = &chunk->stripe; in btrfs_finish_chunk_alloc()
4849 btrfs_set_stack_stripe_devid(stripe, device->devid); in btrfs_finish_chunk_alloc()
[all …]
Dextent-tree.c2034 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent() local
2038 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
2040 if (!stripe->dev->can_discard) in btrfs_discard_extent()
2043 ret = btrfs_issue_discard(stripe->dev->bdev, in btrfs_discard_extent()
2044 stripe->physical, in btrfs_discard_extent()
2045 stripe->length, in btrfs_discard_extent()
Dctree.h315 struct btrfs_stripe stripe; member
2472 offset += offsetof(struct btrfs_chunk, stripe); in btrfs_stripe_nr()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_io.c85 int stripe, loff_t start, loff_t end) in lov_io_sub_inherit() argument
97 new_size = lov_size_to_stripe(lsm, new_size, stripe); in lov_io_sub_inherit()
107 off = lov_size_to_stripe(lsm, off, stripe); in lov_io_sub_inherit()
143 int stripe = sub->sub_stripe; in lov_io_sub_init() local
150 if (unlikely(lov_r0(lov)->lo_sub[stripe] == NULL)) in lov_io_sub_init()
159 sub->sub_io = &ld->ld_emrg[stripe]->emrg_subio; in lov_io_sub_init()
160 sub->sub_env = ld->ld_emrg[stripe]->emrg_env; in lov_io_sub_init()
179 lio->lis_single_subio_index = stripe; in lov_io_sub_init()
190 sub_obj = lovsub2cl(lov_r0(lov)->lo_sub[stripe]); in lov_io_sub_init()
218 struct lov_io *lio, int stripe) in lov_sub_get() argument
[all …]
Dlov_merge.c117 int stripe = 0; in lov_adjust_kms() local
124 for (; stripe < lsm->lsm_stripe_count; stripe++) { in lov_adjust_kms()
125 struct lov_oinfo *loi = lsm->lsm_oinfo[stripe]; in lov_adjust_kms()
127 kms = lov_size_to_stripe(lsm, size, stripe); in lov_adjust_kms()
130 stripe, kms > loi->loi_kms ? "increase":"shrink", in lov_adjust_kms()
138 stripe = lov_stripe_number(lsm, size - 1); in lov_adjust_kms()
139 kms = lov_size_to_stripe(lsm, size, stripe); in lov_adjust_kms()
140 loi = lsm->lsm_oinfo[stripe]; in lov_adjust_kms()
143 stripe, kms > loi->loi_kms ? "" : "not ", loi->loi_kms, kms); in lov_adjust_kms()
Dlov_page.c169 int stripe; in lov_page_init_raid0() local
173 stripe = lov_stripe_number(loo->lo_lsm, offset); in lov_page_init_raid0()
174 LASSERT(stripe < r0->lo_nr); in lov_page_init_raid0()
175 rc = lov_stripe_offset(loo->lo_lsm, offset, stripe, in lov_page_init_raid0()
182 sub = lov_sub_get(env, lio, stripe); in lov_page_init_raid0()
188 subobj = lovsub2cl(r0->lo_sub[stripe]); in lov_page_init_raid0()
Dlov_object.c124 struct cl_object *stripe, struct lov_layout_raid0 *r0, in lov_init_sub() argument
139 cl_object_kill(env, stripe); in lov_init_sub()
140 cl_object_put(env, stripe); in lov_init_sub()
145 subhdr = cl_object_header(stripe); in lov_init_sub()
161 lu_object_ref_add(&stripe->co_lu, "lov-parent", lov); in lov_init_sub()
162 r0->lo_sub[idx] = cl2lovsub(stripe); in lov_init_sub()
178 lu_object_unhash(env, &stripe->co_lu); in lov_init_sub()
185 LU_OBJECT_DEBUG(mask, env, &stripe->co_lu, in lov_init_sub()
189 cl_object_put(env, stripe); in lov_init_sub()
202 struct cl_object *stripe; in lov_init_raid0() local
[all …]
Dlovsub_lock.c147 int stripe, struct cl_lock_descr *out) in lovsub_lock_descr_map() argument
163 start += start/size * skip + stripe * size; in lovsub_lock_descr_map()
166 end += end/size * skip + stripe * size; in lovsub_lock_descr_map()
Dlov_lock.c899 struct lov_object *lov, int stripe, in lov_lock_stripe_is_matching() argument
924 if (idx == stripe || in lov_lock_stripe_is_matching()
927 if (idx == stripe || in lov_lock_stripe_is_matching()
941 result = lov_stripe_intersects(lsm, stripe, start, end, in lov_lock_stripe_is_matching()
Dlov_cl_internal.h607 int stripe);
Dlov_obd.c1971 __u32 *stripe = val; in lov_get_info() local
1973 if (*vallen < sizeof(*stripe)) { in lov_get_info()
1977 *vallen = sizeof(*stripe); in lov_get_info()
1995 *stripe = i; in lov_get_info()
/linux-4.4.14/drivers/md/bcache/
Dwriteback.c293 unsigned stripe_offset, stripe, sectors_dirty; in bcache_dev_sectors_dirty_add() local
298 stripe = offset_to_stripe(d, offset); in bcache_dev_sectors_dirty_add()
308 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add()
312 d->stripe_sectors_dirty + stripe); in bcache_dev_sectors_dirty_add()
314 set_bit(stripe, d->full_dirty_stripes); in bcache_dev_sectors_dirty_add()
316 clear_bit(stripe, d->full_dirty_stripes); in bcache_dev_sectors_dirty_add()
320 stripe++; in bcache_dev_sectors_dirty_add()
336 unsigned start_stripe, stripe, next_stripe; in refill_full_stripes() local
339 stripe = offset_to_stripe(&dc->disk, KEY_OFFSET(&buf->last_scanned)); in refill_full_stripes()
341 if (stripe >= dc->disk.nr_stripes) in refill_full_stripes()
[all …]
Dwriteback.h28 unsigned stripe = offset_to_stripe(&dc->disk, offset); in bcache_dev_stripe_dirty() local
31 if (atomic_read(dc->disk.stripe_sectors_dirty + stripe)) in bcache_dev_stripe_dirty()
38 stripe++; in bcache_dev_stripe_dirty()
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c107 p = xdr_decode_hyper(p, &b->stripe.chunk_size); in nfs4_block_decode_volume()
108 b->stripe.volumes_count = be32_to_cpup(p++); in nfs4_block_decode_volume()
110 p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); in nfs4_block_decode_volume()
113 for (i = 0; i < b->stripe.volumes_count; i++) in nfs4_block_decode_volume()
114 b->stripe.volumes[i] = be32_to_cpup(p++); in nfs4_block_decode_volume()
272 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe()
277 for (i = 0; i < v->stripe.volumes_count; i++) { in bl_parse_stripe()
279 volumes, v->stripe.volumes[i], gfp_mask); in bl_parse_stripe()
288 d->chunk_size = v->stripe.chunk_size; in bl_parse_stripe()
Dblocklayout.h84 } stripe; member
/linux-4.4.14/Documentation/filesystems/
Dntfs.txt13 - Using NTFS volume and stripe sets
33 For fault tolerance and raid support (i.e. volume and stripe sets), you can
228 Using NTFS volume and stripe sets
231 For support of volume and stripe sets, you can either use the kernel's
240 You will need to create a table of the components of the volume/stripe set and
245 though untested, there is no reason why stripe sets, i.e. raid level 0, and
384 Linear volume sets, i.e. linear raid, as well as stripe sets, i.e. raid level
391 NTFS volume/stripe you are configuring in /etc/raidtab as the persistent
394 Windows by default uses a stripe chunk size of 64k, so you probably want the
397 For example, if you have a stripe set consisting of two partitions /dev/hda5
[all …]
Dxfs.txt148 stripe unit configured at mkfs time.
161 Data allocations will not be aligned at stripe unit
197 Used to specify the stripe unit and width for a RAID device
198 or a stripe volume. "value" must be specified in 512-byte
214 Data allocations will be rounded up to stripe width boundaries
216 size is larger than the stripe width size.
Dceph.txt97 maximum. Ceph will normally size writes based on the file stripe
Dbtrfs.txt93 fail with too many devices missing, for example if a stripe member
Dext4.txt261 stripe=n Number of filesystem blocks that mballoc will try
475 the stripe size is not set in the ext4 superblock
/linux-4.4.14/Documentation/device-mapper/
Dstriped.txt1 dm-stripe
Ddm-log.txt6 inconsistent because a RAID stripe is currently being operated on or
Ddm-raid.txt47 "stripe size". It is the only mandatory parameter and
224 of a RAID 4/5/6 stripe and if subsequent read results are not
Dswitch.txt12 dm-stripe.
/linux-4.4.14/Documentation/scsi/
Darcmsr_spec.txt260 ** byte 8 : stripe size
485 ** 10:new stripe size
508 ** byte 29 : stripe size
528 ** byte 29 : new stripe size
DChangeLog.ips121 8K stripe size.
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-fs-ext416 stripe size is not set in the ext4 superblock
Dsysfs-block128 block size. For RAID arrays it is often the stripe
141 usually the stripe width or the internal track size. A
/linux-4.4.14/Documentation/
Dmd.txt604 number of entries in the stripe cache. This is writable, but
607 number of active entries in the stripe cache
609 number of times a stripe requiring preread will be bypassed by
610 a stripe that does not require preread. For fairness defaults
612 requires preread stripes to wait until all full-width stripe-
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c692 u8 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe, in get_arm() argument
703 arm = mega_mod64(stripe, SPAN_ROW_SIZE(map, ld, span)); in get_arm()
707 arm = get_arm_from_strip(instance, ld, stripe, map); in get_arm()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_request.c2690 __u32 *stripe = val; in osc_get_info() local
2691 *vallen = sizeof(*stripe); in osc_get_info()
2692 *stripe = 0; in osc_get_info()
/linux-4.4.14/Documentation/blockdev/
DREADME.DAC960250 stride to match the DAC960 controller's 64KB default stripe size. The command
/linux-4.4.14/Documentation/networking/
Dbonding.txt2307 TCP/IP connection to stripe traffic across multiple
2329 Many switches do not support any modes that stripe traffic