Home
last modified time | relevance | path

Searched refs:block_in_file (Results 1 – 3 of 3) sorted by relevance

/fs/
Dmpage.c177 sector_t block_in_file; in do_mpage_readpage() local
192 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in do_mpage_readpage()
193 last_block = block_in_file + nr_pages * blocks_per_page; in do_mpage_readpage()
203 if (buffer_mapped(map_bh) && block_in_file > *first_logical_block && in do_mpage_readpage()
204 block_in_file < (*first_logical_block + nblocks)) { in do_mpage_readpage()
205 unsigned map_offset = block_in_file - *first_logical_block; in do_mpage_readpage()
218 block_in_file++; in do_mpage_readpage()
231 if (block_in_file < last_block) { in do_mpage_readpage()
232 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
233 if (get_block(inode, block_in_file, map_bh, 0)) in do_mpage_readpage()
[all …]
Ddirect-io.c83 sector_t block_in_file; /* Current offset into the underlying member
509 BUG_ON(dio->block_in_file >= dio->final_block_in_request); in get_more_blocks()
510 fs_startblk = dio->block_in_file >> dio->blkfactor; in get_more_blocks()
511 dio_count = dio->final_block_in_request - dio->block_in_file; in get_more_blocks()
522 if (dio->block_in_file < (i_size_read(dio->inode) >> in get_more_blocks()
746 this_chunk_blocks = dio->block_in_file & (dio_blocks_per_fs_block - 1); in dio_zero_block()
796 while (dio->block_in_file < dio->final_block_in_request) { in do_direct_IO()
835 dio_remainder = (dio->block_in_file & blkmask); in do_direct_IO()
869 if (dio->block_in_file >= in do_direct_IO()
877 dio->block_in_file++; in do_direct_IO()
[all …]
Dbuffer.c2551 sector_t block_in_file; in nobh_write_begin() local
2592 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in nobh_write_begin()
2609 ret = get_block(inode, block_in_file + block_in_page, in nobh_write_begin()