Lines Matching defs:blocks
39 * If a page does not map to a contiguous run of blocks then it simply falls
149 * blocks and constructs largest possible bios, submits them for IO if the
150 * blocks are not contiguous on the disk.
167 sector_t blocks[MAX_BUF_PER_PAGE];
197 * Map blocks using the result from the previous get_blocks call first.
213 blocks[page_block] = map_bh->b_blocknr + map_offset +
259 /* Contiguous blocks? */
260 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1)
269 blocks[page_block] = map_bh->b_blocknr+relative_block;
296 if (args->bio && (args->last_block_in_bio != blocks[0] - 1))
302 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9),
306 args->bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9),
326 args->last_block_in_bio = blocks[blocks_per_page - 1];
345 * This function walks the pages and the blocks within each page, building and
352 * - encountering a page with non-contiguous blocks
362 * the disk mappings may require I/O. Reads of indirect blocks, for example.
364 * So an mpage read of the first 16 blocks of an ext2 file will cause I/O to be
369 * because the indirect block has to be read to get the mappings of blocks
426 * If all blocks are found to be contiguous then the page can go into the
492 sector_t blocks[MAX_BUF_PER_PAGE];
531 if (bh->b_blocknr != blocks[page_block-1] + 1)
534 blocks[page_block++] = bh->b_blocknr;
575 if (map_bh.b_blocknr != blocks[page_block-1] + 1)
578 blocks[page_block++] = map_bh.b_blocknr;
610 if (bio && mpd->last_block_in_bio != blocks[0] - 1)
616 if (!bdev_write_page(bdev, blocks[0] << (blkbits - 9),
620 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9),
653 mpd->last_block_in_bio = blocks[blocks_per_page - 1];