Lines Matching refs:real_stripes

597 	ASSERT(stripe_nr < rbio->real_stripes);  in rbio_stripe_sector_index()
623 if (rbio->nr_data + 1 == rbio->real_stripes) in rbio_qstripe_sector()
878 ASSERT(stripe_nr >= 0 && stripe_nr < rbio->real_stripes); in sector_in_rbio()
905 const unsigned int real_stripes = bioc->num_stripes - bioc->replace_nr_stripes; in alloc_rbio() local
907 const unsigned int num_pages = stripe_npages * real_stripes; in alloc_rbio()
910 const unsigned int num_sectors = stripe_nsectors * real_stripes; in alloc_rbio()
930 rbio->finish_pointers = kcalloc(real_stripes, sizeof(void *), GFP_NOFS); in alloc_rbio()
950 rbio->real_stripes = real_stripes; in alloc_rbio()
957 rbio->nr_data = real_stripes - btrfs_nr_parity_stripes(bioc->map_type); in alloc_rbio()
1012 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in get_rbio_veritical_errors()
1215 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in generate_pq_vertical()
1320 rbio->real_stripes, in rmw_assemble_write_bios()
1354 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in set_rbio_range_error()
1756 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in recover_vertical()
1798 if (failb == rbio->real_stripes - 1) { in recover_vertical()
1799 if (faila == rbio->real_stripes - 2) in recover_vertical()
1813 if (failb == rbio->real_stripes - 2) { in recover_vertical()
1814 raid6_datap_recov(rbio->real_stripes, sectorsize, in recover_vertical()
1817 raid6_2data_recov(rbio->real_stripes, sectorsize, in recover_vertical()
1869 for (stripe_nr = rbio->real_stripes - 1; stripe_nr >= 0; stripe_nr--) in recover_vertical()
1887 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_sectors()
1888 unmap_array = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_sectors()
2022 failb = rbio->real_stripes - (mirror_num - 1); in set_rbio_raid6_extra_error()
2360 for (i = rbio->nr_data; i < rbio->real_stripes; i++) { in raid56_parity_alloc_scrub_rbio()
2366 ASSERT(i < rbio->real_stripes); in raid56_parity_alloc_scrub_rbio()
2418 if (rbio->real_stripes - rbio->nr_data == 1) in finish_parity_scrub()
2420 else if (rbio->real_stripes - rbio->nr_data == 2) in finish_parity_scrub()
2457 pointers[rbio->real_stripes - 1] = kmap_local_page(q_sector.page); in finish_parity_scrub()
2478 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_parity_scrub()
2504 kunmap_local(pointers[rbio->real_stripes - 1]); in finish_parity_scrub()
2537 rbio->real_stripes, in finish_parity_scrub()
2572 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_scrub_rbio()
2573 unmap_array = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_scrub_rbio()