Searched refs:stripe_len (Results 1 – 7 of 7) sorted by relevance
/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 540 if (size != rbio->nr_data * rbio->stripe_len) in __rbio_is_full() 543 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in __rbio_is_full() 947 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio() 963 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument 965 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages() 973 struct btrfs_bio *bbio, u64 stripe_len) in alloc_rbio() argument 978 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio() 979 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio() 995 rbio->stripe_len = stripe_len; in alloc_rbio() [all …]
|
D | scrub.c | 143 int stripe_len; member 2396 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap() 2402 start = div_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap() 2699 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset() 2701 stripe_nr = div_u64(*offset, map->stripe_len); in get_raid56_logic_offset() 2714 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset() 2869 nsectors = div_u64(map->stripe_len, root->sectorsize); in scrub_raid56_parity() 2880 sparity->stripe_len = map->stripe_len; in scrub_raid56_parity() 2952 while (key.objectid >= logic_start + map->stripe_len) in scrub_raid56_parity() 2953 logic_start += map->stripe_len; in scrub_raid56_parity() [all …]
|
D | volumes.c | 4824 map->stripe_len = raid_stripe_len; in __btrfs_alloc_chunk() 4989 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 4992 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 4993 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 5210 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len() 5355 u64 stripe_len; in __btrfs_map_block() local 5391 stripe_len = map->stripe_len; in __btrfs_map_block() 5397 stripe_nr = div64_u64(stripe_nr, stripe_len); in __btrfs_map_block() 5399 stripe_offset = stripe_nr * stripe_len; in __btrfs_map_block() 5404 stripe_len); in __btrfs_map_block() [all …]
|
D | volumes.h | 350 u64 stripe_len; member 387 u64 **logical, int *naddrs, int *stripe_len);
|
D | extent-tree.c | 256 int stripe_len; in exclude_super_stripes() local 260 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes() 261 cache->bytes_super += stripe_len; in exclude_super_stripes() 263 stripe_len); in exclude_super_stripes() 271 bytenr, 0, &logical, &nr, &stripe_len); in exclude_super_stripes() 282 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes() 288 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes() 290 len = min_t(u64, stripe_len, in exclude_super_stripes()
|
D | ctree.h | 1571 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64); 1589 stripe_len, 64);
|