Home
last modified time | relevance | path

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

/fs/btrfs/
Draid56.c105 int stripe_len; member
537 if (size != rbio->nr_data * rbio->stripe_len) in rbio_is_full()
539 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in rbio_is_full()
955 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio()
971 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument
973 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()
982 u64 stripe_len) in alloc_rbio() argument
987 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio()
988 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio()
1009 rbio->stripe_len = stripe_len; in alloc_rbio()
[all …]
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,
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.c5178 map->stripe_len = BTRFS_STRIPE_LEN; in create_chunk()
5374 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5377 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5378 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5538 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5686 u64 stripe_len; in __btrfs_map_block_for_discard() local
5716 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5721 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5724 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5726 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
[all …]
Dblock-group.c1666 u64 physical, u64 **logical, int *naddrs, int *stripe_len) in btrfs_rmap_block() argument
1683 io_stripe_size = map->stripe_len; in btrfs_rmap_block()
1687 io_stripe_size = map->stripe_len * nr_data_stripes(map); in btrfs_rmap_block()
1705 stripe_nr = div64_u64(stripe_nr, map->stripe_len); in btrfs_rmap_block()
1735 *stripe_len = io_stripe_size; in btrfs_rmap_block()
1746 int stripe_len; in exclude_super_stripes() local
1750 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->start; in exclude_super_stripes()
1751 cache->bytes_super += stripe_len; in exclude_super_stripes()
1753 stripe_len); in exclude_super_stripes()
1761 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes()
[all …]
Dvolumes.h26 u64 stripe_len; member
374 u64 stripe_len; member
Dtree-checker.c758 u64 stripe_len; in btrfs_check_chunk_valid() local
769 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in btrfs_check_chunk_valid()
818 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid()
821 stripe_len); in btrfs_check_chunk_valid()
Dblock-group.h305 u64 physical, u64 **logical, int *naddrs, int *stripe_len);
Dctree.h1584 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64);
1602 stripe_len, 64);
/fs/btrfs/tests/
Dextent-map-tests.c487 map->stripe_len = BTRFS_STRIPE_LEN; in test_rmap_block()