Home
last modified time | relevance | path

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

/linux-4.1.27/fs/btrfs/
Draid56.h46 struct btrfs_bio *bbio, u64 stripe_len,
49 struct btrfs_bio *bbio, u64 stripe_len);
53 struct btrfs_bio *bbio, u64 stripe_len,
Draid56.c113 int stripe_len; member
540 if (size != rbio->nr_data * rbio->stripe_len) in __rbio_is_full()
543 BUG_ON(size > rbio->nr_data * rbio->stripe_len); in __rbio_is_full()
613 index += (rbio->nr_data * rbio->stripe_len) >> PAGE_CACHE_SHIFT; in rbio_pstripe_page()
626 index += ((rbio->nr_data + 1) * rbio->stripe_len) >> in rbio_qstripe_page()
922 chunk_page = index * (rbio->stripe_len >> PAGE_SHIFT) + pagenr; in page_in_rbio()
938 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument
940 unsigned long nr = stripe_len * nr_stripes; in rbio_nr_pages()
949 struct btrfs_bio *bbio, u64 stripe_len) in alloc_rbio() argument
954 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio()
[all …]
Dscrub.c142 int stripe_len; member
2325 if (len >= sparity->stripe_len) { in __scrub_mark_bitmap()
2331 start = div_u64_rem(start, sparity->stripe_len, &offset); in __scrub_mark_bitmap()
2624 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset()
2626 stripe_nr = div_u64(*offset, map->stripe_len); in get_raid56_logic_offset()
2639 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset()
2781 nsectors = map->stripe_len / root->sectorsize; in scrub_raid56_parity()
2792 sparity->stripe_len = map->stripe_len; in scrub_raid56_parity()
2864 while (key.objectid >= logic_start + map->stripe_len) in scrub_raid56_parity()
2865 logic_start += map->stripe_len; in scrub_raid56_parity()
[all …]
Dvolumes.c4438 map->stripe_len = raid_stripe_len; in __btrfs_alloc_chunk()
4589 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4592 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4593 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
4810 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
4957 u64 stripe_len; in __btrfs_map_block() local
4993 stripe_len = map->stripe_len; in __btrfs_map_block()
4999 stripe_nr = div64_u64(stripe_nr, stripe_len); in __btrfs_map_block()
5001 stripe_offset = stripe_nr * stripe_len; in __btrfs_map_block()
5009 unsigned long full_stripe_len = stripe_len * nr_data_stripes(map); in __btrfs_map_block()
[all …]
Dvolumes.h341 int stripe_len; member
418 u64 **logical, int *naddrs, int *stripe_len);
Dextent-tree.c260 int stripe_len; in exclude_super_stripes() local
264 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
265 cache->bytes_super += stripe_len; in exclude_super_stripes()
267 stripe_len); in exclude_super_stripes()
276 0, &logical, &nr, &stripe_len); in exclude_super_stripes()
287 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
293 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes()
295 len = min_t(u64, stripe_len, in exclude_super_stripes()
Dctree.h296 __le64 stripe_len; member
2391 BTRFS_SETGET_FUNCS(chunk_stripe_len, struct btrfs_chunk, stripe_len, 64);
2409 stripe_len, 64);