Searched refs:stripe_len (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/fs/btrfs/ |
D | raid56.h | 46 struct btrfs_bio *bbio, u64 stripe_len, 49 struct btrfs_bio *bbio, u64 stripe_len); 56 struct btrfs_bio *bbio, u64 stripe_len,
|
D | raid56.c | 114 int stripe_len; member 541 if (size != rbio->nr_data * rbio->stripe_len) in __rbio_is_full() 544 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in __rbio_is_full() 618 index += (rbio->nr_data * rbio->stripe_len) >> PAGE_CACHE_SHIFT; in rbio_pstripe_page() 631 index += ((rbio->nr_data + 1) * rbio->stripe_len) >> in rbio_qstripe_page() 934 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio() 950 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument 952 unsigned long nr = stripe_len * nr_stripes; in rbio_nr_pages() 961 struct btrfs_bio *bbio, u64 stripe_len) in alloc_rbio() argument 966 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio() [all …]
|
D | scrub.c | 143 int stripe_len; member 2390 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap() 2396 start = div_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap() 2693 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset() 2695 stripe_nr = div_u64(*offset, map->stripe_len); in get_raid56_logic_offset() 2708 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset() 2863 nsectors = map->stripe_len / root->sectorsize; in scrub_raid56_parity() 2874 sparity->stripe_len = map->stripe_len; in scrub_raid56_parity() 2946 while (key.objectid >= logic_start + map->stripe_len) in scrub_raid56_parity() 2947 logic_start += map->stripe_len; in scrub_raid56_parity() [all …]
|
D | volumes.c | 4706 map->stripe_len = raid_stripe_len; in __btrfs_alloc_chunk() 4857 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 4860 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 4861 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 5078 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len() 5223 u64 stripe_len; in __btrfs_map_block() local 5259 stripe_len = map->stripe_len; in __btrfs_map_block() 5265 stripe_nr = div64_u64(stripe_nr, stripe_len); in __btrfs_map_block() 5267 stripe_offset = stripe_nr * stripe_len; in __btrfs_map_block() 5275 unsigned long full_stripe_len = stripe_len * nr_data_stripes(map); in __btrfs_map_block() [all …]
|
D | volumes.h | 350 int stripe_len; member 433 u64 **logical, int *naddrs, int *stripe_len);
|
D | extent-tree.c | 258 int stripe_len; in exclude_super_stripes() local 262 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes() 263 cache->bytes_super += stripe_len; in exclude_super_stripes() 265 stripe_len); in exclude_super_stripes() 274 0, &logical, &nr, &stripe_len); in exclude_super_stripes() 285 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes() 291 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes() 293 len = min_t(u64, stripe_len, in exclude_super_stripes()
|
D | ctree.h | 296 __le64 stripe_len; member 2435 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64); 2453 stripe_len, 64);
|