Lines Matching refs:currently_testing

107 static blk_t currently_testing = 0;
219 calc_percent((unsigned long) currently_testing,
250 (unsigned long long) currently_testing);
519 currently_testing = first_block;
525 while (currently_testing < last_block)
534 if (currently_testing == next_bad) {
537 currently_testing++;
540 else if (currently_testing + try > next_bad)
541 try = next_bad - currently_testing;
543 if (currently_testing + try > last_block)
544 try = last_block - currently_testing;
545 got = do_read (dev, blkbuf, try, block_size, currently_testing);
554 bb_count += bb_output(currently_testing + i, CORRUPTION_ERROR);
557 bb_count += bb_output(currently_testing++, READ_ERROR);
558 currently_testing += got;
562 recover_block = currently_testing - got +
565 } else if (currently_testing == recover_block) {
628 currently_testing = first_block;
633 while (currently_testing < last_block) {
640 if (currently_testing + try > last_block)
641 try = last_block - currently_testing;
643 currently_testing);
648 bb_count += bb_output(currently_testing++, WRITE_ERROR);
649 currently_testing += got;
653 recover_block = currently_testing -
656 } else if (currently_testing == recover_block) {
670 currently_testing = first_block;
675 while (currently_testing < last_block) {
682 if (currently_testing + try > last_block)
683 try = last_block - currently_testing;
685 currently_testing);
687 bb_count += bb_output(currently_testing++, READ_ERROR);
688 currently_testing += got;
692 recover_block = currently_testing -
695 } else if (currently_testing == recover_block) {
703 bb_count += bb_output(currently_testing+i, CORRUPTION_ERROR);
817 currently_testing = first_block;
822 while (currently_testing < last_block) {
831 if (currently_testing == next_bad) {
834 currently_testing++;
837 else if (currently_testing + try > next_bad)
838 try = next_bad - currently_testing;
840 if (currently_testing + try > last_block)
841 try = last_block - currently_testing;
843 currently_testing);
846 recover_block = currently_testing +
853 bb_count += bb_output(currently_testing++, READ_ERROR);
861 test_record[num_saved].block = currently_testing;
867 currently_testing);
871 (unsigned long) currently_testing +
877 currently_testing += got;
881 recover_block = currently_testing -
893 (currently_testing < last_block))
896 if (currently_testing >= recover_block) {
902 save_currently_testing = currently_testing;
924 currently_testing = test_record[used2].block;
930 block_size, currently_testing);
937 bb_count += bb_output(currently_testing + i, CORRUPTION_ERROR);
939 bb_count += bb_output(currently_testing + got, READ_ERROR);
945 block_size, currently_testing);
948 currently_testing += got;
959 currently_testing = save_currently_testing;