Lines Matching refs:stripe_len

5117 	map->stripe_len = BTRFS_STRIPE_LEN;  in __btrfs_alloc_chunk()
5257 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5260 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5261 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5441 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5597 u64 stripe_len; in __btrfs_map_block_for_discard() local
5626 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5631 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5634 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5636 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
5637 stripe_nr_end = div64_u64(stripe_nr_end, map->stripe_len); in __btrfs_map_block_for_discard()
5639 stripe_end_offset = stripe_nr_end * map->stripe_len - in __btrfs_map_block_for_discard()
5681 stripe_offset + stripe_nr * map->stripe_len; in __btrfs_map_block_for_discard()
5687 map->stripe_len; in __btrfs_map_block_for_discard()
5691 map->stripe_len; in __btrfs_map_block_for_discard()
5930 u64 stripe_len; in btrfs_get_io_geometry() local
5945 stripe_len = map->stripe_len; in btrfs_get_io_geometry()
5947 stripe_nr = div64_u64(offset, stripe_len); in btrfs_get_io_geometry()
5949 stripe_offset = stripe_nr * stripe_len; in btrfs_get_io_geometry()
5953 stripe_offset, offset, em->start, logical, stripe_len); in btrfs_get_io_geometry()
5963 u64 max_len = stripe_len - stripe_offset; in btrfs_get_io_geometry()
5969 unsigned long full_stripe_len = stripe_len * data_stripes; in btrfs_get_io_geometry()
5986 max_len = stripe_len * data_stripes - in btrfs_get_io_geometry()
5997 io_geom->stripe_len = stripe_len; in btrfs_get_io_geometry()
6018 u64 stripe_len; in __btrfs_map_block() local
6050 stripe_len = geom.stripe_len; in __btrfs_map_block()
6128 stripe_len * data_stripes); in __btrfs_map_block()
6134 *length = map->stripe_len; in __btrfs_map_block()
6207 em->start + (tmp + i) * map->stripe_len; in __btrfs_map_block()
6220 stripe_nr * map->stripe_len; in __btrfs_map_block()
6282 u64 physical, u64 **logical, int *naddrs, int *stripe_len) in btrfs_rmap_block() argument
6299 rmap_len = map->stripe_len; in btrfs_rmap_block()
6307 rmap_len = map->stripe_len * nr_data_stripes(map); in btrfs_rmap_block()
6319 stripe_nr = div64_u64(stripe_nr, map->stripe_len); in btrfs_rmap_block()
6344 *stripe_len = rmap_len; in btrfs_rmap_block()
6777 map->stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in read_one_chunk()
7659 u64 stripe_len; in verify_one_dev_extent() local
7677 stripe_len = calc_stripe_length(map->type, em->len, map->num_stripes); in verify_one_dev_extent()
7678 if (physical_len != stripe_len) { in verify_one_dev_extent()
7682 stripe_len); in verify_one_dev_extent()