Lines Matching refs:block_in_file
200 sector_t block_in_file; in do_mpage_readpage() local
225 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage()
226 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage()
237 block_in_file > args->first_logical_block && in do_mpage_readpage()
238 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage()
239 unsigned map_offset = block_in_file - args->first_logical_block; in do_mpage_readpage()
252 block_in_file++; in do_mpage_readpage()
265 if (block_in_file < last_block) { in do_mpage_readpage()
266 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
267 if (args->get_block(inode, block_in_file, map_bh, 0)) in do_mpage_readpage()
269 args->first_logical_block = block_in_file; in do_mpage_readpage()
277 block_in_file++; in do_mpage_readpage()
307 block_in_file++; in do_mpage_readpage()
356 relative_block = block_in_file - args->first_logical_block; in do_mpage_readpage()
543 sector_t block_in_file; in __mpage_writepage() local
611 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in __mpage_writepage()
618 if (mpd->get_block(inode, block_in_file, &map_bh, 1)) in __mpage_writepage()
633 if (block_in_file == last_block) in __mpage_writepage()
635 block_in_file++; in __mpage_writepage()