Searched refs:num_stripes (Results 1 – 12 of 12) sorted by relevance
/fs/btrfs/ |
D | volumes.c | 1280 for (i = 0; i < map->num_stripes; i++) { in contains_pending_extent() 2763 u32 num_stripes; in btrfs_del_sys_chunk() local 2783 num_stripes = btrfs_stack_chunk_num_stripes(chunk); in btrfs_del_sys_chunk() 2784 len += btrfs_chunk_item_size(num_stripes); in btrfs_del_sys_chunk() 2846 for (i = 0; i < map->num_stripes; i++) { in btrfs_remove_chunk() 3275 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_devid_filter() local 3278 for (i = 0; i < num_stripes; i++) { in chunk_devid_filter() 3294 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_drange_filter() local 3305 factor = num_stripes / 2; in chunk_drange_filter() 3307 factor = num_stripes - 1; in chunk_drange_filter() [all …]
|
D | print-tree.c | 25 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk() local 29 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk() 30 for (i = 0 ; i < num_stripes ; i++) { in print_chunk()
|
D | raid56.h | 34 return map->num_stripes - nr_parity_stripes(map); in nr_data_stripes()
|
D | super.c | 1917 int min_stripes = 1, num_stripes = 1; in btrfs_calc_avail_data_space() local 1945 num_stripes = nr_devices; in btrfs_calc_avail_data_space() 1948 num_stripes = 2; in btrfs_calc_avail_data_space() 1951 num_stripes = 4; in btrfs_calc_avail_data_space() 2039 if (num_stripes > nr_devices) in btrfs_calc_avail_data_space() 2040 num_stripes = nr_devices; in btrfs_calc_avail_data_space() 2046 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space() 2048 for (j = i + 1 - num_stripes; j <= i; j++) in btrfs_calc_avail_data_space()
|
D | reada.c | 289 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone() 293 zone->ndevs = bbio->num_stripes; in reada_find_zone() 362 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent() 369 real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in reada_find_extent()
|
D | volumes.h | 312 int num_stripes; member 352 int num_stripes; member
|
D | scrub.c | 1268 return (int)bbio->num_stripes; in scrub_nr_raid_mirrors() 1391 bbio->num_stripes - in scrub_setup_recheck_block() 2705 stripe_nr = div_u64_rem(stripe_nr, map->num_stripes, &rot); in get_raid56_logic_offset() 2708 stripe_index = rot % map->num_stripes; in get_raid56_logic_offset() 3107 increment = map->stripe_len * map->num_stripes; in scrub_stripe() 3110 int factor = map->num_stripes / map->sub_stripes; in scrub_stripe() 3116 mirror_num = num % map->num_stripes + 1; in scrub_stripe() 3119 mirror_num = num % map->num_stripes + 1; in scrub_stripe() 3476 for (i = 0; i < map->num_stripes; ++i) { in scrub_chunk()
|
D | ctree.h | 107 static inline unsigned long btrfs_chunk_item_size(int num_stripes) in btrfs_chunk_item_size() argument 109 BUG_ON(num_stripes == 0); in btrfs_chunk_item_size() 111 sizeof(struct btrfs_stripe) * (num_stripes - 1); in btrfs_chunk_item_size() 1576 BTRFS_SETGET_FUNCS(chunk_num_stripes, struct btrfs_chunk, num_stripes, 16); 1598 num_stripes, 16);
|
D | dev-replace.c | 630 for (i = 0; i < map->num_stripes; i++) in btrfs_dev_replace_update_device_in_mapping_tree()
|
D | raid56.c | 977 int real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in alloc_rbio() 1348 for (i = 0; i < rbio->bbio->num_stripes; i++) { in find_bio_stripe()
|
D | extent-tree.c | 2047 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent() 10810 num_items = 3 + map->num_stripes; in btrfs_start_trans_remove_block_group()
|
/fs/exofs/ |
D | ore.c | 256 u64 num_stripes; in ore_get_rw_state() local 259 num_stripes = div_u64_rem(length, stripe_size, &remainder); in ore_get_rw_state() 261 ++num_stripes; in ore_get_rw_state() 263 num_raid_units = num_stripes * layout->parity; in ore_get_rw_state()
|