Lines Matching defs:blocks
38 * If a page does not map to a contiguous run of blocks then it simply falls
152 * blocks and constructs largest possible bios, submits them for IO if the
153 * blocks are not contiguous on the disk.
170 sector_t blocks[MAX_BUF_PER_PAGE];
200 * Map blocks using the result from the previous get_blocks call first.
216 blocks[page_block] = map_bh->b_blocknr + map_offset +
262 /* Contiguous blocks? */
263 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1)
272 blocks[page_block] = map_bh->b_blocknr+relative_block;
293 if (args->bio && (args->last_block_in_bio != blocks[0] - 1))
302 args->bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9);
317 args->last_block_in_bio = blocks[blocks_per_page - 1];
336 * This function walks the pages and the blocks within each page, building and
343 * - encountering a page with non-contiguous blocks
353 * the disk mappings may require I/O. Reads of indirect blocks, for example.
355 * So an mpage read of the first 16 blocks of an ext2 file will cause I/O to be
360 * because the indirect block has to be read to get the mappings of blocks
416 * If all blocks are found to be contiguous then the page can go into the
480 sector_t blocks[MAX_BUF_PER_PAGE];
518 if (bh->b_blocknr != blocks[page_block-1] + 1)
521 blocks[page_block++] = bh->b_blocknr;
548 * Whole page beyond EOF? Skip allocating blocks to avoid leaking
570 if (map_bh.b_blocknr != blocks[page_block-1] + 1)
573 blocks[page_block++] = map_bh.b_blocknr;
605 if (bio && mpd->last_block_in_bio != blocks[0] - 1)
613 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9);
641 mpd->last_block_in_bio = blocks[blocks_per_page - 1];