Home
last modified time | relevance | path

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

/Linux-v4.19/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
520 if (size != rbio->nr_data * rbio->stripe_len) in rbio_is_full()
522 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in rbio_is_full()
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 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()
961 u64 stripe_len) in alloc_rbio() argument
966 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio()
967 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio()
988 rbio->stripe_len = stripe_len; in alloc_rbio()
[all …]
Dscrub.c131 u64 stripe_len; member
2352 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap()
2358 start = div64_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap()
2460 blocksize = map->stripe_len; in scrub_extent()
2469 blocksize = map->stripe_len; in scrub_extent()
2604 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2606 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2660 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset()
2662 stripe_nr = div64_u64(*offset, map->stripe_len); in get_raid56_logic_offset()
2675 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset()
[all …]
Dvolumes.c4798 map->stripe_len = BTRFS_STRIPE_LEN; in __btrfs_alloc_chunk()
4939 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4942 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4943 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5139 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5295 u64 stripe_len; in __btrfs_map_block_for_discard() local
5324 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5329 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5332 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5334 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
[all …]
Dvolumes.h345 u64 stripe_len; member
397 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.h1639 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64);
1657 stripe_len, 64);
/Linux-v4.19/include/uapi/linux/
Dbtrfs_tree.h411 __le64 stripe_len; member