Lines Matching refs:stripe_len
105 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()
1309 page, stripe, pagenr, rbio->stripe_len); in finish_rmw()
1339 pagenr, rbio->stripe_len); in finish_rmw()
1381 if (in_range(physical, stripe->physical, rbio->stripe_len) && in find_bio_stripe()
1405 if (in_range(logical, stripe_start, rbio->stripe_len)) in find_logical_bio_stripe()
1558 stripe, pagenr, rbio->stripe_len); in raid56_rmw_stripe()
1765 rbio->nr_data * rbio->stripe_len); in rbio_add_bio()
1784 struct btrfs_bio *bbio, u64 stripe_len) in raid56_parity_write() argument
1791 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_write()
2112 stripe, pagenr, rbio->stripe_len); in __raid56_parity_recover()
2168 struct btrfs_bio *bbio, u64 stripe_len, in raid56_parity_recover() argument
2179 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_recover()
2273 struct btrfs_bio *bbio, u64 stripe_len, in raid56_parity_alloc_scrub_rbio() argument
2280 rbio = alloc_rbio(fs_info, bbio, stripe_len); in raid56_parity_alloc_scrub_rbio()
2327 rbio->stripe_len * rbio->nr_data); in raid56_add_scrub_pages()
2472 page, rbio->scrubp, pagenr, rbio->stripe_len); in finish_parity_scrub()
2486 pagenr, rbio->stripe_len); in finish_parity_scrub()
2657 stripe, pagenr, rbio->stripe_len); in raid56_parity_scrub_stripe()