Home
last modified time | relevance | path

Searched refs:stripe_len (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/fs/btrfs/
Draid56.h34 struct btrfs_bio *bbio, u64 stripe_len,
37 struct btrfs_bio *bbio, u64 stripe_len);
44 struct btrfs_bio *bbio, u64 stripe_len,
Draid56.c89 int stripe_len; member
523 if (size != rbio->nr_data * rbio->stripe_len) in rbio_is_full()
525 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in rbio_is_full()
943 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio()
959 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument
961 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()
970 u64 stripe_len) in alloc_rbio() argument
975 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio()
976 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio()
997 rbio->stripe_len = stripe_len; in alloc_rbio()
[all …]
Dscrub.c131 u64 stripe_len; member
2371 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap()
2377 start = div64_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap()
2479 blocksize = map->stripe_len; in scrub_extent()
2488 blocksize = map->stripe_len; in scrub_extent()
2623 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2625 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2679 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset()
2681 stripe_nr = div64_u64(*offset, map->stripe_len); in get_raid56_logic_offset()
2694 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset()
[all …]
Dvolumes.c4833 map->stripe_len = BTRFS_STRIPE_LEN; in __btrfs_alloc_chunk()
4975 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4978 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4979 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5174 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5330 u64 stripe_len; in __btrfs_map_block_for_discard() local
5359 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5364 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5367 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5369 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
[all …]
Dtree-checker.c507 u64 stripe_len; in btrfs_check_chunk_valid() local
515 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in btrfs_check_chunk_valid()
543 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid()
546 stripe_len); in btrfs_check_chunk_valid()
Dvolumes.h358 u64 stripe_len; member
410 u64 physical, u64 **logical, int *naddrs, int *stripe_len);
Dextent-tree.c239 int stripe_len; in exclude_super_stripes() local
243 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
244 cache->bytes_super += stripe_len; in exclude_super_stripes()
246 stripe_len); in exclude_super_stripes()
254 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes()
265 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
271 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes()
273 len = min_t(u64, stripe_len, in exclude_super_stripes()
Dctree.h1653 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64);
1671 stripe_len, 64);
/linux-4.19.296/include/uapi/linux/
Dbtrfs_tree.h411 __le64 stripe_len; member