Home
last modified time | relevance | path

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

/linux-4.1.27/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
83 &sc->stripe[stripe].dev)) in get_stripe()
86 sc->stripe[stripe].physical_start = start; in get_stripe()
187 dm_put_device(ti, sc->stripe[i].dev); in stripe_ctr()
191 atomic_set(&(sc->stripe[i].error_count), 0); in stripe_ctr()
205 dm_put_device(ti, sc->stripe[i].dev); in stripe_dtr()
[all …]
Draid0.c471 int stripe = mddev->raid_disks * in raid0_run() local
473 if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) in raid0_run()
474 mddev->queue->backing_dev_info.ra_pages = 2* stripe; in raid0_run()
Draid5.c518 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
2540 sector_t stripe, stripe2; in raid5_compute_sector() local
2565 stripe = chunk_number; in raid5_compute_sector()
2566 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector()
2567 stripe2 = stripe; in raid5_compute_sector()
2734 new_sector = (sector_t)stripe * sectors_per_chunk + chunk_offset; in raid5_compute_sector()
2748 sector_t stripe; in compute_blocknr() local
2756 stripe = new_sector; in compute_blocknr()
2844 chunk_number = stripe * data_disks + i; in compute_blocknr()
3056 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()
3744 int stripe = conf->geo.raid_disks * in run() local
3751 stripe /= conf->geo.near_copies; in run()
3752 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) in run()
3753 mddev->queue->backing_dev_info.ra_pages = 2 * stripe; in run()
4546 int stripe = conf->geo.raid_disks * in end_reshape() local
[all …]
/linux-4.1.27/fs/btrfs/
Draid56.c1054 struct btrfs_bio_stripe *stripe; in rbio_add_io_page() local
1057 stripe = &rbio->bbio->stripes[stripe_nr]; in rbio_add_io_page()
1058 disk_start = stripe->physical + (page_index << PAGE_CACHE_SHIFT); in rbio_add_io_page()
1061 if (!stripe->dev->bdev) in rbio_add_io_page()
1073 if (last_end == disk_start && stripe->dev->bdev && in rbio_add_io_page()
1075 last->bi_bdev == stripe->dev->bdev) { in rbio_add_io_page()
1088 bio->bi_bdev = stripe->dev->bdev; in rbio_add_io_page()
1118 static struct page *rbio_stripe_page(struct btrfs_raid_bio *rbio, int stripe, int page) in rbio_stripe_page() argument
1121 index = stripe * (rbio->stripe_len >> PAGE_CACHE_SHIFT); in rbio_stripe_page()
1171 int stripe; in finish_rmw() local
[all …]
Dvolumes.c2982 struct btrfs_stripe *stripe; in chunk_devid_filter() local
2987 stripe = btrfs_stripe_nr(chunk, i); in chunk_devid_filter()
2988 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) in chunk_devid_filter()
3001 struct btrfs_stripe *stripe; in chunk_drange_filter() local
3023 stripe = btrfs_stripe_nr(chunk, i); in chunk_drange_filter()
3024 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) in chunk_drange_filter()
3027 stripe_offset = btrfs_stripe_offset(leaf, stripe); in chunk_drange_filter()
4521 struct btrfs_stripe *stripe; in btrfs_finish_chunk_alloc() local
4576 stripe = &chunk->stripe; in btrfs_finish_chunk_alloc()
4581 btrfs_set_stack_stripe_devid(stripe, device->devid); in btrfs_finish_chunk_alloc()
[all …]
Dextent-tree.c1906 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent() local
1910 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
1911 if (!stripe->dev->can_discard) in btrfs_discard_extent()
1914 ret = btrfs_issue_discard(stripe->dev->bdev, in btrfs_discard_extent()
1915 stripe->physical, in btrfs_discard_extent()
1916 stripe->length); in btrfs_discard_extent()
1918 discarded_bytes += stripe->length; in btrfs_discard_extent()
Dctree.h315 struct btrfs_stripe stripe; member
2428 offset += offsetof(struct btrfs_chunk, stripe); in btrfs_stripe_nr()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_io.c84 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()
144 int stripe = sub->sub_stripe; in lov_io_sub_init() local
151 if (unlikely(lov_r0(lov)->lo_sub[stripe] == NULL)) in lov_io_sub_init()
160 sub->sub_io = &ld->ld_emrg[stripe]->emrg_subio; in lov_io_sub_init()
161 sub->sub_env = ld->ld_emrg[stripe]->emrg_env; in lov_io_sub_init()
180 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()
126 kms = lov_size_to_stripe(lsm, size, stripe); in lov_adjust_kms()
129 stripe, kms > loi->loi_kms ? "increase":"shrink", in lov_adjust_kms()
137 stripe = lov_stripe_number(lsm, size - 1); in lov_adjust_kms()
138 kms = lov_size_to_stripe(lsm, size, stripe); in lov_adjust_kms()
139 loi = lsm->lsm_oinfo[stripe]; in lov_adjust_kms()
142 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.c125 struct cl_object *stripe, struct lov_layout_raid0 *r0, in lov_init_sub() argument
140 cl_object_kill(env, stripe); in lov_init_sub()
141 cl_object_put(env, stripe); in lov_init_sub()
146 subhdr = cl_object_header(stripe); in lov_init_sub()
162 lu_object_ref_add(&stripe->co_lu, "lov-parent", lov); in lov_init_sub()
163 r0->lo_sub[idx] = cl2lovsub(stripe); in lov_init_sub()
179 lu_object_unhash(env, &stripe->co_lu); in lov_init_sub()
186 LU_OBJECT_DEBUG(mask, env, &stripe->co_lu, in lov_init_sub()
190 cl_object_put(env, stripe); in lov_init_sub()
203 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.c900 struct lov_object *lov, int stripe, in lov_lock_stripe_is_matching() argument
925 if (idx == stripe || in lov_lock_stripe_is_matching()
928 if (idx == stripe || in lov_lock_stripe_is_matching()
942 result = lov_stripe_intersects(lsm, stripe, start, end, in lov_lock_stripe_is_matching()
Dlov_cl_internal.h608 int stripe);
Dlov_obd.c1989 __u32 *stripe = val; in lov_get_info() local
1991 if (*vallen < sizeof(*stripe)) { in lov_get_info()
1995 *vallen = sizeof(*stripe); in lov_get_info()
2013 *stripe = i; in lov_get_info()
/linux-4.1.27/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.1.27/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
/linux-4.1.27/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.1.27/Documentation/device-mapper/
Dstriped.txt1 dm-stripe
Ddm-log.txt6 inconsistent because a RAID stripe is currently being operated on or
Dswitch.txt12 dm-stripe.
Ddm-raid.txt47 "stripe size". It is the only mandatory parameter and
/linux-4.1.27/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.1.27/Documentation/ABI/testing/
Dsysfs-block121 block size. For RAID arrays it is often the stripe
134 usually the stripe width or the internal track size. A
Dsysfs-fs-ext416 stripe size is not set in the ext4 superblock
/linux-4.1.27/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.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c684 u8 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe, in get_arm() argument
695 arm = mega_mod64(stripe, SPAN_ROW_SIZE(map, ld, span)); in get_arm()
699 arm = get_arm_from_strip(instance, ld, stripe, map); in get_arm()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_request.c2746 __u32 *stripe = val; in osc_get_info() local
2747 *vallen = sizeof(*stripe); in osc_get_info()
2748 *stripe = 0; in osc_get_info()
/linux-4.1.27/Documentation/blockdev/
DREADME.DAC960250 stride to match the DAC960 controller's 64KB default stripe size. The command
/linux-4.1.27/Documentation/networking/
Dbonding.txt2223 TCP/IP connection to stripe traffic across multiple
2245 Many switches do not support any modes that stripe traffic