Lines Matching refs:real_stripes

558 	ASSERT(stripe_nr < rbio->real_stripes);  in rbio_stripe_sector_index()
584 if (rbio->nr_data + 1 == rbio->real_stripes) in rbio_qstripe_sector()
888 ASSERT(stripe_nr >= 0 && stripe_nr < rbio->real_stripes); in sector_in_rbio()
915 const unsigned int real_stripes = bioc->num_stripes - bioc->num_tgtdevs; in alloc_rbio() local
917 const unsigned int num_pages = stripe_npages * real_stripes; in alloc_rbio()
920 const unsigned int num_sectors = stripe_nsectors * real_stripes; in alloc_rbio()
936 sizeof(*rbio->finish_pointers) * real_stripes, in alloc_rbio()
950 rbio->real_stripes = real_stripes; in alloc_rbio()
971 CONSUME_ALLOC(rbio->finish_pointers, real_stripes); in alloc_rbio()
975 rbio->nr_data = real_stripes - btrfs_nr_parity_stripes(bioc->map_type); in alloc_rbio()
1084 BUG_ON(rbio->faila == rbio->real_stripes - 1); in validate_rbio_for_rmw()
1187 if (rbio->real_stripes - rbio->nr_data == 1) in finish_rmw()
1189 else if (rbio->real_stripes - rbio->nr_data == 2) in finish_rmw()
1251 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_rmw()
1873 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in __raid_recover_end_io()
1883 unmap_array = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in __raid_recover_end_io()
1918 for (stripe = 0; stripe < rbio->real_stripes; stripe++) { in __raid_recover_end_io()
1980 raid6_datap_recov(rbio->real_stripes, in __raid_recover_end_io()
1983 raid6_2data_recov(rbio->real_stripes, in __raid_recover_end_io()
2023 for (stripe = rbio->real_stripes - 1; stripe >= 0; stripe--) in __raid_recover_end_io()
2233 rbio->failb = rbio->real_stripes - (mirror_num - 1); in raid56_parity_recover()
2304 for (i = rbio->nr_data; i < rbio->real_stripes; i++) { in raid56_parity_alloc_scrub_rbio()
2310 ASSERT(i < rbio->real_stripes); in raid56_parity_alloc_scrub_rbio()
2381 if (rbio->real_stripes - rbio->nr_data == 1) in finish_parity_scrub()
2383 else if (rbio->real_stripes - rbio->nr_data == 2) in finish_parity_scrub()
2419 pointers[rbio->real_stripes - 1] = kmap_local_page(q_sector.page); in finish_parity_scrub()
2440 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_parity_scrub()
2466 kunmap_local(pointers[rbio->real_stripes - 1]); in finish_parity_scrub()