Lines Matching refs:num_blocks
311 blk64_t *num_blocks) in check_for_inode_bad_blocks() argument
346 *num_blocks = 1; in check_for_inode_bad_blocks()
358 if ((blk + *num_blocks) > bb->list[scan->bad_block_ptr]) in check_for_inode_bad_blocks()
359 *num_blocks = (int) (bb->list[scan->bad_block_ptr] - blk); in check_for_inode_bad_blocks()
408 static void check_inode_block_sanity(ext2_inode_scan scan, blk64_t num_blocks) in check_inode_block_sanity() argument
422 inodes_in_buf = num_blocks * scan->fs->blocksize / scan->inode_size; in check_inode_block_sanity()
500 blk64_t num_blocks; in get_next_blocks() local
508 num_blocks = scan->inode_buffer_blocks; in get_next_blocks()
509 if (num_blocks > scan->blocks_left) in get_next_blocks()
510 num_blocks = scan->blocks_left; in get_next_blocks()
526 retval = check_for_inode_bad_blocks(scan, &num_blocks); in get_next_blocks()
534 (size_t) num_blocks * scan->fs->blocksize); in get_next_blocks()
538 (int) num_blocks, in get_next_blocks()
543 check_inode_block_sanity(scan, num_blocks); in get_next_blocks()
546 scan->bytes_left = num_blocks * scan->fs->blocksize; in get_next_blocks()
548 scan->blocks_left -= num_blocks; in get_next_blocks()
550 scan->current_block += num_blocks; in get_next_blocks()