| /linux/drivers/md/ |
| H A D | dm-stripe.c | 32 uint32_t stripes; member 47 struct stripe stripe[] __counted_by(stripes); 92 uint32_t stripes; in stripe_ctr() local 102 if (kstrtouint(argv[0], 10, &stripes) || !stripes) { in stripe_ctr() 113 if (sector_div(width, stripes)) { in stripe_ctr() 127 if (argc != (2 + 2 * stripes)) { in stripe_ctr() 132 sc = kmalloc_flex(*sc, stripe, stripes); in stripe_ctr() 142 sc->stripes = stripes; in stripe_ctr() 145 if (stripes & (stripes - 1)) in stripe_ctr() 148 sc->stripes_shift = __ffs(stripes); in stripe_ctr() [all …]
|
| H A D | dm-unstripe.c | 16 uint32_t stripes; member 37 * <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 57 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr() 72 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr() 73 ti->error = "Please provide stripe between [0, # of stripes]"; in unstripe_ctr() 89 uc->unstripe_width = (sector_t)(uc->stripes - 1) * uc->chunk_size; in unstripe_ctr() 157 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
|
| H A D | raid5.c | 322 * Be careful: Only one task can add/delete stripes from temp_inactive_list at 323 * given time. Adding stripes only takes device lock, while deleting stripes 344 * remove stripes from the list in release_inactive_stripe_list() 784 * bitmap to track stripe sectors that have been added to stripes 792 * there are fewer than 3/4 the maximum number of active stripes 2523 /* Make all the stripes able to hold 'newsize' devices. in resize_stripes() 2534 * freed when all stripes are done. in resize_stripes() 2585 * OK, we have enough stripes, start collecting inactive in resize_stripes() 2586 * stripes an in resize_stripes() 6402 struct list_head stripes; reshape_request() local 7832 int stripes = max_t(int, setup_conf() local [all...] |
| /linux/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 68 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents() 89 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents() 110 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents() 244 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents() 265 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents() 286 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents() 387 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole() 527 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete_prev_item() 548 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete_prev_item() 667 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete() [all …]
|
| H A D | extent-map-tests.c | 1044 map->stripes[i].dev = dev; in test_rmap_block() 1045 map->stripes[i].physical = test->data_stripe_phys_start[i]; in test_rmap_block()
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 3517 ret = btrfs_update_device(trans, map->stripes[i].dev); in btrfs_remove_dev_extents() 3544 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk() 3546 map->stripes[i].physical, in btrfs_remove_chunk() 3601 * that replaces the device object associated with the map's stripes, in btrfs_remove_chunk() 4368 /* stripes filter */ 4886 CHECK_APPEND_2ARG("stripes=%u..%u,", in describe_balance_start_or_resume() 5783 /* Total number of stripes to allocate */ in init_alloc_chunk_ctl_policy_regular() 5797 /* Number of stripes worth of bytes to store parity information */ in init_alloc_chunk_ctl_policy_zoned() 5972 /* Number of stripes that count for block group size */ in decide_stripe_size_regular() 5976 * The primary goal is to maximize the number of stripes, s in decide_stripe_size_regular() 6596 struct stripe_mirror stripes[BTRFS_RAID1_MAX_MIRRORS] = { 0 }; btrfs_read_rr() local 6732 struct btrfs_discard_stripe *stripes; btrfs_map_discard() local [all...] |
| H A D | scrub.c | 45 * This determines how many stripes would be submitted in one go, 87 * Set for data stripes if it's triggered from P/Q stripe. 88 * During such scrub, we should not report errors in data stripes, nor 186 struct scrub_stripe stripes[SCRUB_TOTAL_STRIPES]; member 425 release_scrub_stripe(&sctx->stripes[i]); in scrub_free_ctx() 442 /* Since sctx has inline 128 stripes, it can go beyond 64K easily. Use in scrub_setup_ctx() 458 ret = init_scrub_stripe(fs_info, &sctx->stripes[i]); in scrub_setup_ctx() 461 sctx->stripes[i].sctx = sctx; in scrub_setup_ctx() 1021 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors() 1022 dev = bioc->stripes[stripe_inde in scrub_stripe_report_errors() [all...] |
| H A D | raid56.c | 56 i, bioc->stripes[i].dev->devid, in dump_bioc() 57 bioc->stripes[i].physical); in dump_bioc() 122 /* Used by the raid56 code to lock stripes for read/modify/write */ 128 /* Used by the raid56 code to lock stripes for read/modify/write */ 401 * Thus if the first sector of the page belongs to data stripes, then in is_data_stripe_page() 402 * the full page belongs to data stripes. in is_data_stripe_page() 1067 * Real stripes must be between 2 (2 disks RAID5, aka RAID1) and 256 in alloc_rbio() 1121 /* allocate pages for all the stripes in the bio, including parity */ 1134 /* only allocate pages for p/q stripes */ 1240 stripe = &rbio->bioc->stripes[stripe_n in rbio_add_io_paddrs() [all...] |
| H A D | raid-stripe-tree.c | 348 u64 devid = bioc->stripes[i].dev->devid; in btrfs_insert_one_raid_extent() 349 u64 physical = bioc->stripes[i].physical; in btrfs_insert_one_raid_extent()
|
| H A D | dev-replace.c | 568 if (srcdev != map->stripes[i].dev) in btrfs_finish_block_group_to_copy() 572 if (physical == map->stripes[i].physical) in btrfs_finish_block_group_to_copy() 580 * Has more stripes on this device. Keep this block group in btrfs_finish_block_group_to_copy() 581 * readonly until we finish all the stripes. in btrfs_finish_block_group_to_copy() 854 if (srcdev == map->stripes[i].dev) in btrfs_dev_replace_update_device_in_mapping_tree() 855 map->stripes[i].dev = tgtdev; in btrfs_dev_replace_update_device_in_mapping_tree()
|
| H A D | zoned.c | 1339 info->physical = map->stripes[zone_idx].physical; in btrfs_load_zone_info() 1342 device = map->stripes[zone_idx].dev; in btrfs_load_zone_info() 2350 u64 physical = bioc->stripes[i].physical; in read_zone_info() 2351 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info() 2450 device = map->stripes[i].dev; in btrfs_zone_activate() 2451 physical = map->stripes[i].physical; in btrfs_zone_activate() 2645 ret = call_zone_finish(block_group, &map->stripes[i]); in do_zone_finish() 3111 map->stripes[i].dev->zone_info->reserved_active_zones--; 3193 struct btrfs_io_stripe *stripe = &map->stripes[i]; in btrfs_reset_unused_block_groups()
|
| H A D | volumes.h | 452 /* Policy used to read the mirrored stripes. */ 532 * The total number of stripes, including the extra duplicated 548 * @replace_nr_stripes: Number of duplicated stripes which need to be 551 * @replace_stripe_src: The array indicates where the duplicated stripes 555 * As non-RAID56 stripes share the same contents of the mapped range, 558 * But for RAID56 case, all stripes contain different contents, thus 564 * stripes[0]: dev = devid 1, physical = X 565 * stripes[1]: dev = devid 2, physical = Y 566 * stripes[2]: dev = devid 3, physical = Z 567 * stripes[ 600 struct btrfs_io_stripe stripes[]; global() member 646 struct btrfs_io_stripe stripes[]; global() member [all...] |
| H A D | block-group.c | 2322 if (!in_range(physical, map->stripes[i].physical, in btrfs_rmap_block() 2326 stripe_nr = (physical - map->stripes[i].physical) >> in btrfs_rmap_block() 2328 offset = (physical - map->stripes[i].physical) & in btrfs_rmap_block() 2388 /* Shouldn't have super stripes in sequential zones */ in exclude_super_stripes() 2545 * We need to exclude the super stripes now so that the space info has in read_one_block_group() 2884 * with the map's stripes, because the device object's id can change in insert_dev_extents() 2892 device = map->stripes[i].dev; in insert_dev_extents() 2893 dev_offset = map->stripes[i].physical; in insert_dev_extents() 4621 * groups which haven't yet had their chunk stripes and device extents removed, in btrfs_reserve_chunk_metadata() 4627 * chunk's stripes ar in btrfs_reserve_chunk_metadata() [all...] |
| H A D | extent-tree.c | 1434 * stripes don't go away while we are discarding. in btrfs_discard_extent() 1438 struct btrfs_discard_stripe *stripes; in btrfs_discard_extent() local 1443 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes, in btrfs_discard_extent() 1445 if (IS_ERR(stripes)) { in btrfs_discard_extent() 1446 ret = PTR_ERR(stripes); in btrfs_discard_extent() 1453 struct btrfs_discard_stripe *stripe = stripes + i; in btrfs_discard_extent() 1478 kfree(stripes); in btrfs_discard_extent() 2915 * Complete the remapping of a block group by removing its chunk stripes and
|
| H A D | inode.c | 10469 device = map->stripes[0].dev; in btrfs_swap_activate() 10475 } else if (device != map->stripes[0].dev) { in btrfs_swap_activate() 10481 physical_block_start = (map->stripes[0].physical + in btrfs_swap_activate()
|
| H A D | relocation.c | 4851 ret = btrfs_update_device(trans, chunk_map->stripes[i].dev); in btrfs_last_identity_remap_gone()
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | unstriped.rst | 14 <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 16 <number of stripes> 17 The number of stripes in the RAID 0.
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-abi.h | 1222 struct imgu_abi_af_stripe_config stripes[IPU3_UAPI_MAX_STRIPES]; member 1234 } stripes[IPU3_UAPI_MAX_STRIPES]; member 1249 struct ipu3_uapi_awb_fr_config_s stripes[IPU3_UAPI_MAX_STRIPES]; member 1268 struct ipu3_uapi_awb_config_s stripes[IPU3_UAPI_MAX_STRIPES]; member
|
| H A D | ipu3-css.c | 695 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; in imgu_css_pipeline_init() 990 sp_stage->num_stripes = stripes; in imgu_css_pipeline_init() 2108 unsigned int stripes, i; in imgu_css_set_parameters() 2130 stripes = bi->info.isp.sp.iterator.num_stripes ? : 1; in imgu_css_set_parameters() 2241 for (i = 0; i < stripes; i++) { in imgu_css_set_parameters() 2244 map->daddr + (obgrid_size / stripes) * i; in imgu_css_set_parameters() 696 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; imgu_css_pipeline_init() local 2109 unsigned int stripes, i; imgu_css_set_parameters() local
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_actlog.c | 300 const unsigned int stripes = device->ldev->md.al_stripes; in al_tr_number_to_on_disk_sector() local 307 t = ((t % stripes) * stripe_size_4kB) + t/stripes; in al_tr_number_to_on_disk_sector()
|
| /linux/Documentation/driver-api/md/ |
| H A D | raid5-cache.rst | 26 shutdown can cause data in some stripes to not be in consistent state, eg, data
|
| /linux/drivers/block/ |
| H A D | Kconfig | 320 Say Y here if you want include the Rados block device, which stripes
|