Lines Matching refs:stripe_len
89 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()
1284 page, stripe, pagenr, rbio->stripe_len); in finish_rmw()
1309 pagenr, rbio->stripe_len); in finish_rmw()
1358 physical < stripe_start + rbio->stripe_len && in find_bio_stripe()
1385 logical < stripe_start + rbio->stripe_len) { in find_logical_bio_stripe()
1539 stripe, pagenr, rbio->stripe_len); in raid56_rmw_stripe()
1743 struct btrfs_bio *bbio, u64 stripe_len) in raid56_parity_write() argument
1750 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_write()
2082 stripe, pagenr, rbio->stripe_len); in __raid56_parity_recover()
2142 struct btrfs_bio *bbio, u64 stripe_len, in raid56_parity_recover() argument
2153 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_recover()
2248 struct btrfs_bio *bbio, u64 stripe_len, in raid56_parity_alloc_scrub_rbio() argument
2255 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_alloc_scrub_rbio()
2302 rbio->stripe_len * rbio->nr_data); in raid56_add_scrub_pages()
2451 page, rbio->scrubp, pagenr, rbio->stripe_len); in finish_parity_scrub()
2465 pagenr, rbio->stripe_len); in finish_parity_scrub()
2640 stripe, pagenr, rbio->stripe_len); in raid56_parity_scrub_stripe()