Lines Matching refs:nr_data
108 int nr_data; 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()
634 return rbio_stripe_page(rbio, rbio->nr_data, index); in rbio_pstripe_page()
643 if (rbio->nr_data + 1 == rbio->real_stripes) in rbio_qstripe_page()
645 return rbio_stripe_page(rbio, rbio->nr_data + 1, index); in rbio_qstripe_page()
976 int nr_data = 0; in alloc_rbio() local
1027 nr_data = real_stripes - 1; in alloc_rbio()
1029 nr_data = real_stripes - 2; in alloc_rbio()
1033 rbio->nr_data = nr_data; in alloc_rbio()
1060 i = rbio_stripe_page_index(rbio, rbio->nr_data, 0); in alloc_rbio_parity_pages()
1193 int nr_data = rbio->nr_data; in finish_rmw() local
1203 if (rbio->real_stripes - rbio->nr_data == 1) in finish_rmw()
1205 else if (rbio->real_stripes - rbio->nr_data == 2) in finish_rmw()
1242 for (stripe = 0; stripe < nr_data; stripe++) { in finish_rmw()
1266 copy_page(pointers[nr_data], pointers[0]); in finish_rmw()
1267 run_xor(pointers + 1, nr_data - 1, PAGE_SIZE); in finish_rmw()
1283 if (stripe < rbio->nr_data) { in finish_rmw()
1307 if (stripe < rbio->nr_data) { in finish_rmw()
1380 for (i = 0; i < rbio->nr_data; i++) { in find_logical_bio_stripe()
1514 for (stripe = 0; stripe < rbio->nr_data; stripe++) { in raid56_rmw_stripe()
1848 if (faila == rbio->nr_data) { in __raid_recover_end_io()
1902 copy_page(pointers[faila], pointers[rbio->nr_data]); in __raid_recover_end_io()
1906 for (stripe = faila; stripe < rbio->nr_data - 1; stripe++) in __raid_recover_end_io()
1908 pointers[rbio->nr_data - 1] = p; in __raid_recover_end_io()
1911 run_xor(pointers, rbio->nr_data - 1, PAGE_SIZE); in __raid_recover_end_io()
2256 for (i = rbio->nr_data; i < rbio->real_stripes; i++) { in raid56_parity_alloc_scrub_rbio()
2287 rbio->stripe_len * rbio->nr_data); in raid56_add_scrub_pages()
2325 int nr_data = rbio->nr_data; in finish_parity_scrub() local
2338 if (rbio->real_stripes - rbio->nr_data == 1) in finish_parity_scrub()
2340 else if (rbio->real_stripes - rbio->nr_data == 2) in finish_parity_scrub()
2380 for (stripe = 0; stripe < nr_data; stripe++) { in finish_parity_scrub()
2399 copy_page(pointers[nr_data], pointers[0]); in finish_parity_scrub()
2400 run_xor(pointers + 1, nr_data - 1, PAGE_SIZE); in finish_parity_scrub()
2413 for (stripe = 0; stripe < nr_data; stripe++) in finish_parity_scrub()
2453 nr_data = bio_list_size(&bio_list); in finish_parity_scrub()
2454 if (!nr_data) { in finish_parity_scrub()
2460 atomic_set(&rbio->stripes_pending, nr_data); in finish_parity_scrub()
2480 if (stripe >= 0 && stripe < rbio->nr_data) in is_data_stripe()