Lines Matching refs:stripe_nsectors

277 		  dest->stripe_nsectors);  in merge_rbio()
559 ASSERT(sector_nr < rbio->stripe_nsectors); in rbio_stripe_sector_index()
561 return stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_stripe_sector_index()
821 bitmap_clear(&rbio->dbitmap, 0, rbio->stripe_nsectors); in rbio_orig_end_io()
889 ASSERT(sector_nr >= 0 && sector_nr < rbio->stripe_nsectors); in sector_in_rbio()
891 index = stripe_nr * rbio->stripe_nsectors + sector_nr; in sector_in_rbio()
918 const unsigned int stripe_nsectors = in alloc_rbio() local
920 const unsigned int num_sectors = stripe_nsectors * real_stripes; in alloc_rbio()
930 ASSERT(stripe_nsectors <= BITS_PER_LONG); in alloc_rbio()
952 rbio->stripe_nsectors = stripe_nsectors; in alloc_rbio()
1034 ASSERT(sector_nr >= 0 && sector_nr < rbio->stripe_nsectors); in rbio_add_io_sector()
1195 ASSERT(bitmap_weight(&rbio->dbitmap, rbio->stripe_nsectors)); in finish_rmw()
1226 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in finish_rmw()
1270 stripe = total_sector_nr / rbio->stripe_nsectors; in finish_rmw()
1271 sectornr = total_sector_nr % rbio->stripe_nsectors; in finish_rmw()
1298 stripe = total_sector_nr / rbio->stripe_nsectors; in finish_rmw()
1299 sectornr = total_sector_nr % rbio->stripe_nsectors; in finish_rmw()
1307 total_sector_nr += rbio->stripe_nsectors - 1; in finish_rmw()
1538 const int nr_data_sectors = rbio->stripe_nsectors * rbio->nr_data; in raid56_rmw_stripe()
1556 int stripe = total_sector_nr / rbio->stripe_nsectors; in raid56_rmw_stripe()
1557 int sectornr = total_sector_nr % rbio->stripe_nsectors; in raid56_rmw_stripe()
1793 fs_info->sectorsize_bits) % rbio->stripe_nsectors; in rbio_add_bio()
1901 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in __raid_recover_end_io()
2012 for (i = 0; i < rbio->stripe_nsectors; i++) { in __raid_recover_end_io()
2126 int stripe = total_sector_nr / rbio->stripe_nsectors; in __raid56_parity_recover()
2127 int sectornr = total_sector_nr % rbio->stripe_nsectors; in __raid56_parity_recover()
2134 total_sector_nr += rbio->stripe_nsectors - 1; in __raid56_parity_recover()
2282 unsigned long *dbitmap, int stripe_nsectors) in raid56_parity_alloc_scrub_rbio() argument
2312 bitmap_copy(&rbio->dbitmap, dbitmap, stripe_nsectors); in raid56_parity_alloc_scrub_rbio()
2345 int sectornr = total_sector_nr % rbio->stripe_nsectors; in alloc_rbio_essential_pages()
2390 bitmap_copy(pbitmap, &rbio->dbitmap, rbio->stripe_nsectors); in finish_parity_scrub()
2427 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2477 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2490 for_each_set_bit(sectornr, pbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2637 int sectornr = total_sector_nr % rbio->stripe_nsectors; in raid56_parity_scrub_stripe()
2638 int stripe = total_sector_nr / rbio->stripe_nsectors; in raid56_parity_scrub_stripe()