Lines Matching refs:stripe_nsectors
184 if (i < rbio->nr_data * rbio->stripe_nsectors) in cache_rbio_pages()
286 return (sector_nr < rbio->nr_data * rbio->stripe_nsectors); in is_data_stripe_page()
339 dest->stripe_nsectors); in merge_rbio()
598 ASSERT(sector_nr < rbio->stripe_nsectors); in rbio_stripe_sector_index()
600 return stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_stripe_sector_index()
840 bitmap_clear(&rbio->dbitmap, 0, rbio->stripe_nsectors); in rbio_orig_end_io()
879 ASSERT(sector_nr >= 0 && sector_nr < rbio->stripe_nsectors); in sector_in_rbio()
881 index = stripe_nr * rbio->stripe_nsectors + sector_nr; in sector_in_rbio()
908 const unsigned int stripe_nsectors = in alloc_rbio() local
910 const unsigned int num_sectors = stripe_nsectors * real_stripes; in alloc_rbio()
919 ASSERT(stripe_nsectors <= BITS_PER_LONG); in alloc_rbio()
952 rbio->stripe_nsectors = stripe_nsectors; in alloc_rbio()
1013 int total_sector_nr = stripe_nr * rbio->stripe_nsectors + sector_nr; in get_rbio_veritical_errors()
1055 ASSERT(sector_nr >= 0 && sector_nr < rbio->stripe_nsectors); in rbio_add_io_sector()
1065 set_bit(stripe_nr * rbio->stripe_nsectors + sector_nr, in rbio_add_io_sector()
1238 ASSERT(bitmap_weight(&rbio->dbitmap, rbio->stripe_nsectors)); in rmw_assemble_write_bios()
1254 stripe = total_sector_nr / rbio->stripe_nsectors; in rmw_assemble_write_bios()
1255 sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_assemble_write_bios()
1289 stripe = total_sector_nr / rbio->stripe_nsectors; in rmw_assemble_write_bios()
1290 sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_assemble_write_bios()
1303 total_sector_nr += rbio->stripe_nsectors - 1; in rmw_assemble_write_bios()
1339 ASSERT(total_nr_sector < rbio->nr_data * rbio->stripe_nsectors); in set_rbio_range_error()
1358 stripe_nr * rbio->stripe_nsectors, in set_rbio_range_error()
1359 rbio->stripe_nsectors); in set_rbio_range_error()
1465 if (total_sector_nr >= rbio->nr_data * rbio->stripe_nsectors) in verify_bio_data_sectors()
1629 fs_info->sectorsize_bits) % rbio->stripe_nsectors; in rbio_add_bio()
1706 (stripe_nr * rbio->stripe_nsectors + sector_nr) * in verify_one_sector()
1902 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in recover_sectors()
1943 int stripe = total_sector_nr / rbio->stripe_nsectors; in recover_rbio()
1944 int sectornr = total_sector_nr % rbio->stripe_nsectors; in recover_rbio()
2003 for (sector_nr = 0; sector_nr < rbio->stripe_nsectors; sector_nr++) { in set_rbio_raid6_extra_error()
2028 set_bit(failb * rbio->stripe_nsectors + sector_nr, in set_rbio_raid6_extra_error()
2077 const u32 len = (rbio->nr_data * rbio->stripe_nsectors) << in fill_data_csums()
2099 rbio->csum_buf = kzalloc(rbio->nr_data * rbio->stripe_nsectors * in fill_data_csums()
2101 rbio->csum_bitmap = bitmap_zalloc(rbio->nr_data * rbio->stripe_nsectors, in fill_data_csums()
2153 int stripe = total_sector_nr / rbio->stripe_nsectors; in rmw_read_wait_recover()
2154 int sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_read_wait_recover()
2212 for (i = 0; i < rbio->nr_data * rbio->stripe_nsectors; i++) { in need_read_stripe_sectors()
2284 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) in rmw_rbio()
2298 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in rmw_rbio()
2338 unsigned long *dbitmap, int stripe_nsectors) in raid56_parity_alloc_scrub_rbio() argument
2368 bitmap_copy(&rbio->dbitmap, dbitmap, stripe_nsectors); in raid56_parity_alloc_scrub_rbio()
2384 int sectornr = total_sector_nr % rbio->stripe_nsectors; in alloc_rbio_essential_pages()
2431 bitmap_copy(pbitmap, &rbio->dbitmap, rbio->stripe_nsectors); in finish_parity_scrub()
2465 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2514 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2532 for_each_set_bit(sectornr, pbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2579 for (sector_nr = 0; sector_nr < rbio->stripe_nsectors; sector_nr++) { in recover_scrub_rbio()
2652 int sectornr = total_sector_nr % rbio->stripe_nsectors; in scrub_assemble_read_bios()
2653 int stripe = total_sector_nr / rbio->stripe_nsectors; in scrub_assemble_read_bios()
2715 for (sector_nr = 0; sector_nr < rbio->stripe_nsectors; sector_nr++) { in scrub_rbio()