Home
last modified time | relevance | path

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

/Linux-v5.10/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.c105 int stripe_len; member
534 if (size != rbio->nr_data * rbio->stripe_len) in rbio_is_full()
536 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in rbio_is_full()
946 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio()
962 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument
964 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()
973 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()
1000 rbio->stripe_len = stripe_len; in alloc_rbio()
[all …]
Dscrub.c134 u64 stripe_len; member
2305 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap()
2311 start = div64_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap()
2413 blocksize = map->stripe_len; in scrub_extent()
2422 blocksize = map->stripe_len; in scrub_extent()
2557 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2559 blocksize = sparity->stripe_len; in scrub_extent_for_parity()
2613 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset()
2615 stripe_nr = div64_u64(*offset, map->stripe_len); in get_raid56_logic_offset()
2628 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset()
[all …]
Dvolumes.c5081 map->stripe_len = BTRFS_STRIPE_LEN; in create_chunk()
5277 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5280 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5281 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5441 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5589 u64 stripe_len; in __btrfs_map_block_for_discard() local
5619 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5624 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5627 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5629 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
[all …]
Dblock-group.c1648 u64 physical, u64 **logical, int *naddrs, int *stripe_len) in btrfs_rmap_block() argument
1665 io_stripe_size = map->stripe_len; in btrfs_rmap_block()
1669 io_stripe_size = map->stripe_len * nr_data_stripes(map); in btrfs_rmap_block()
1687 stripe_nr = div64_u64(stripe_nr, map->stripe_len); in btrfs_rmap_block()
1717 *stripe_len = io_stripe_size; in btrfs_rmap_block()
1728 int stripe_len; in exclude_super_stripes() local
1732 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->start; in exclude_super_stripes()
1733 cache->bytes_super += stripe_len; in exclude_super_stripes()
1735 stripe_len); in exclude_super_stripes()
1743 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes()
[all …]
Dvolumes.h26 u64 stripe_len; member
373 u64 stripe_len; member
Dblock-group.h299 u64 physical, u64 **logical, int *naddrs, int *stripe_len);
Dtree-checker.c757 u64 stripe_len; in btrfs_check_chunk_valid() local
768 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in btrfs_check_chunk_valid()
811 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid()
814 stripe_len); in btrfs_check_chunk_valid()
Dctree.h1578 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64);
1596 stripe_len, 64);
/Linux-v5.10/include/uapi/linux/
Dbtrfs_tree.h423 __le64 stripe_len; member
/Linux-v5.10/fs/btrfs/tests/
Dextent-map-tests.c487 map->stripe_len = BTRFS_STRIPE_LEN; in test_rmap_block()