Home
last modified time | relevance | path

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

/fs/
Dmpage.c200 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()
[all …]
Ddirect-io.c81 sector_t block_in_file; /* Current offset into the underlying member
687 BUG_ON(sdio->block_in_file >= sdio->final_block_in_request); in get_more_blocks()
688 fs_startblk = sdio->block_in_file >> sdio->blkfactor; in get_more_blocks()
891 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section()
929 this_chunk_blocks = sdio->block_in_file & (dio_blocks_per_fs_block - 1); in dio_zero_block()
974 while (sdio->block_in_file < sdio->final_block_in_request) { in do_direct_IO()
1022 dio_remainder = (sdio->block_in_file & blkmask); in do_direct_IO()
1056 if (sdio->block_in_file >= in do_direct_IO()
1063 sdio->block_in_file++; in do_direct_IO()
1085 u = sdio->final_block_in_request - sdio->block_in_file; in do_direct_IO()
[all …]
Dbuffer.c2549 sector_t block_in_file; in nobh_write_begin() local
2589 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
2606 ret = get_block(inode, block_in_file + block_in_page, in nobh_write_begin()
/fs/ext4/
Dreadpage.c263 sector_t block_in_file; in ext4_mpage_readpages() local
295 block_in_file = next_block = in ext4_mpage_readpages()
297 last_block = block_in_file + nr_pages * blocks_per_page; in ext4_mpage_readpages()
308 block_in_file > map.m_lblk && in ext4_mpage_readpages()
309 block_in_file < (map.m_lblk + map.m_len)) { in ext4_mpage_readpages()
310 unsigned map_offset = block_in_file - map.m_lblk; in ext4_mpage_readpages()
324 block_in_file++; in ext4_mpage_readpages()
333 if (block_in_file < last_block) { in ext4_mpage_readpages()
334 map.m_lblk = block_in_file; in ext4_mpage_readpages()
335 map.m_len = last_block - block_in_file; in ext4_mpage_readpages()
[all …]
/fs/f2fs/
Ddata.c1816 sector_t block_in_file; in f2fs_read_single_page() local
1822 block_in_file = (sector_t)page_index(page); in f2fs_read_single_page()
1823 last_block = block_in_file + nr_pages; in f2fs_read_single_page()
1830 if (block_in_file >= last_block) in f2fs_read_single_page()
1836 block_in_file > map->m_lblk && in f2fs_read_single_page()
1837 block_in_file < (map->m_lblk + map->m_len)) in f2fs_read_single_page()
1844 map->m_lblk = block_in_file; in f2fs_read_single_page()
1845 map->m_len = last_block - block_in_file; in f2fs_read_single_page()
1852 block_nr = map->m_pblk + block_in_file - map->m_lblk; in f2fs_read_single_page()