Lines Matching refs:first_block
372 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block)
381 block = first_block;
426 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block)
428 unsigned int length = 0, block = first_block;
452 * if we stop the code, we may see again a valid chain if there was a first_block
458 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block)
460 unsigned int block = first_block, block1;
462 printk("Formatting chain at block %d\n", first_block);
569 unsigned int block, first_block, is_first_block;
589 for (first_block = 0; first_block < s->nb_blocks; first_block++) {
591 if (s->ReplUnitTable[first_block] == BLOCK_NOTEXPLORED) {
592 block = first_block;
640 block, first_block);
694 the first_block flag set if folding is in
699 get_fold_mark(s, first_block) == FOLD_MARK_IN_PROGRESS) {
724 format_chain(s, first_block);
730 fold_mark = get_fold_mark(s, first_block);
733 printk("Could read foldmark at block %d\n", first_block);
734 format_chain(s, first_block);
737 check_sectors_in_chain(s, first_block);
748 first_block1, chain_length1, first_block, chain_length);
752 s->EUNtable[first_logical_block] = first_block;
754 chain_to_format = first_block;
758 s->EUNtable[first_logical_block] = first_block;