Searched refs:stripe_len (Results 1 – 8 of 8) sorted by relevance
/fs/btrfs/ |
D | raid56.c | 105 int stripe_len; member 536 if (size != rbio->nr_data * rbio->stripe_len) in rbio_is_full() 538 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in rbio_is_full() 950 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio() 966 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument 968 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages() 977 u64 stripe_len) in alloc_rbio() argument 982 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio() 983 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio() 1004 rbio->stripe_len = stripe_len; in alloc_rbio() [all …]
|
D | raid56.h | 34 struct btrfs_bio *bbio, u64 stripe_len, 37 struct btrfs_bio *bbio, u64 stripe_len); 44 struct btrfs_bio *bbio, u64 stripe_len,
|
D | scrub.c | 133 u64 stripe_len; member 2373 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap() 2379 start = div64_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap() 2481 blocksize = map->stripe_len; in scrub_extent() 2490 blocksize = map->stripe_len; in scrub_extent() 2625 blocksize = sparity->stripe_len; in scrub_extent_for_parity() 2627 blocksize = sparity->stripe_len; in scrub_extent_for_parity() 2681 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset() 2683 stripe_nr = div64_u64(*offset, map->stripe_len); in get_raid56_logic_offset() 2696 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset() [all …]
|
D | volumes.c | 5121 map->stripe_len = BTRFS_STRIPE_LEN; in __btrfs_alloc_chunk() 5261 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 5264 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 5265 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc() 5445 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len() 5601 u64 stripe_len; in __btrfs_map_block_for_discard() local 5630 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard() 5635 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard() 5638 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard() 5640 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard() [all …]
|
D | volumes.h | 32 u64 stripe_len; member 377 u64 stripe_len; member 432 u64 physical, u64 **logical, int *naddrs, int *stripe_len);
|
D | tree-checker.c | 574 u64 stripe_len; in btrfs_check_chunk_valid() local 582 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in btrfs_check_chunk_valid() 610 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid() 613 stripe_len); in btrfs_check_chunk_valid()
|
D | block-group.c | 1525 int stripe_len; in exclude_super_stripes() local 1529 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes() 1530 cache->bytes_super += stripe_len; in exclude_super_stripes() 1532 stripe_len); in exclude_super_stripes() 1540 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes() 1551 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes() 1557 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes() 1559 len = min_t(u64, stripe_len, in exclude_super_stripes()
|
D | ctree.h | 1462 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64); 1480 stripe_len, 64);
|