Lines Matching refs:sectornr

1185 static void generate_pq_vertical(struct btrfs_raid_bio *rbio, int sectornr)  in generate_pq_vertical()  argument
1195 sector = sector_in_rbio(rbio, stripe, sectornr, 0); in generate_pq_vertical()
1201 sector = rbio_pstripe_sector(rbio, sectornr); in generate_pq_vertical()
1210 sector = rbio_qstripe_sector(rbio, sectornr); in generate_pq_vertical()
1231 int sectornr; in rmw_assemble_write_bios() local
1255 sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_assemble_write_bios()
1258 if (!test_bit(sectornr, &rbio->dbitmap)) in rmw_assemble_write_bios()
1262 sector = sector_in_rbio(rbio, stripe, sectornr, 1); in rmw_assemble_write_bios()
1266 sector = rbio_stripe_sector(rbio, stripe, sectornr); in rmw_assemble_write_bios()
1270 sectornr, REQ_OP_WRITE); in rmw_assemble_write_bios()
1290 sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_assemble_write_bios()
1302 ASSERT(sectornr == 0); in rmw_assemble_write_bios()
1308 if (!test_bit(sectornr, &rbio->dbitmap)) in rmw_assemble_write_bios()
1312 sector = sector_in_rbio(rbio, stripe, sectornr, 1); in rmw_assemble_write_bios()
1316 sector = rbio_stripe_sector(rbio, stripe, sectornr); in rmw_assemble_write_bios()
1321 sectornr, REQ_OP_WRITE); in rmw_assemble_write_bios()
1878 int sectornr; in recover_sectors() local
1902 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in recover_sectors()
1903 ret = recover_vertical(rbio, sectornr, pointers, unmap_array); in recover_sectors()
1944 int sectornr = total_sector_nr % rbio->stripe_nsectors; in recover_rbio() local
1962 sector = rbio_stripe_sector(rbio, stripe, sectornr); in recover_rbio()
1964 sectornr, REQ_OP_READ); in recover_rbio()
2154 int sectornr = total_sector_nr % rbio->stripe_nsectors; in rmw_read_wait_recover() local
2156 sector = rbio_stripe_sector(rbio, stripe, sectornr); in rmw_read_wait_recover()
2158 stripe, sectornr, REQ_OP_READ); in rmw_read_wait_recover()
2229 int sectornr; in rmw_rbio() local
2284 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) in rmw_rbio()
2285 generate_pq_vertical(rbio, sectornr); in rmw_rbio()
2298 for (sectornr = 0; sectornr < rbio->stripe_nsectors; sectornr++) { in rmw_rbio()
2301 found_errors = get_rbio_veritical_errors(rbio, sectornr, NULL, NULL); in rmw_rbio()
2384 int sectornr = total_sector_nr % rbio->stripe_nsectors; in alloc_rbio_essential_pages() local
2387 if (!test_bit(sectornr, &rbio->dbitmap)) in alloc_rbio_essential_pages()
2408 int sectornr; in finish_parity_scrub() local
2465 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2471 sector = sector_in_rbio(rbio, stripe, sectornr, 0); in finish_parity_scrub()
2487 sector = rbio_stripe_sector(rbio, rbio->scrubp, sectornr); in finish_parity_scrub()
2493 bitmap_clear(&rbio->dbitmap, sectornr, 1); in finish_parity_scrub()
2514 for_each_set_bit(sectornr, &rbio->dbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2517 sector = rbio_stripe_sector(rbio, rbio->scrubp, sectornr); in finish_parity_scrub()
2519 sectornr, REQ_OP_WRITE); in finish_parity_scrub()
2532 for_each_set_bit(sectornr, pbitmap, rbio->stripe_nsectors) { in finish_parity_scrub()
2535 sector = rbio_stripe_sector(rbio, rbio->scrubp, sectornr); in finish_parity_scrub()
2538 sectornr, REQ_OP_WRITE); in finish_parity_scrub()
2652 int sectornr = total_sector_nr % rbio->stripe_nsectors; in scrub_assemble_read_bios() local
2657 if (!test_bit(sectornr, &rbio->dbitmap)) in scrub_assemble_read_bios()
2665 sector = sector_in_rbio(rbio, stripe, sectornr, 1); in scrub_assemble_read_bios()
2669 sector = rbio_stripe_sector(rbio, stripe, sectornr); in scrub_assemble_read_bios()
2678 sectornr, REQ_OP_READ); in scrub_assemble_read_bios()