Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/
Dmpage.c164 sector_t block_in_file; in do_mpage_readpage() local
189 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage()
190 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage()
201 block_in_file > args->first_logical_block && in do_mpage_readpage()
202 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage()
203 unsigned map_offset = block_in_file - args->first_logical_block; in do_mpage_readpage()
216 block_in_file++; in do_mpage_readpage()
229 if (block_in_file < last_block) { in do_mpage_readpage()
230 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
231 if (args->get_block(inode, block_in_file, map_bh, 0)) in do_mpage_readpage()
[all …]
Ddirect-io.c82 sector_t block_in_file; /* Current offset into the underlying member
644 BUG_ON(sdio->block_in_file >= sdio->final_block_in_request); in get_more_blocks()
645 fs_startblk = sdio->block_in_file >> sdio->blkfactor; in get_more_blocks()
849 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section()
887 this_chunk_blocks = sdio->block_in_file & (dio_blocks_per_fs_block - 1); in dio_zero_block()
932 while (sdio->block_in_file < sdio->final_block_in_request) { in do_direct_IO()
980 dio_remainder = (sdio->block_in_file & blkmask); in do_direct_IO()
1014 if (sdio->block_in_file >= in do_direct_IO()
1021 sdio->block_in_file++; in do_direct_IO()
1043 u = sdio->final_block_in_request - sdio->block_in_file; in do_direct_IO()
[all …]
Dbuffer.c2591 sector_t block_in_file; in nobh_write_begin() local
2631 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
2648 ret = get_block(inode, block_in_file + block_in_page, in nobh_write_begin()
/kernel/linux/linux-5.10/fs/ext4/
Dreadpage.c234 sector_t block_in_file; in ext4_mpage_readpages() local
262 block_in_file = next_block = in ext4_mpage_readpages()
264 last_block = block_in_file + nr_pages * blocks_per_page; in ext4_mpage_readpages()
275 block_in_file > map.m_lblk && in ext4_mpage_readpages()
276 block_in_file < (map.m_lblk + map.m_len)) { in ext4_mpage_readpages()
277 unsigned map_offset = block_in_file - map.m_lblk; in ext4_mpage_readpages()
291 block_in_file++; in ext4_mpage_readpages()
300 if (block_in_file < last_block) { in ext4_mpage_readpages()
301 map.m_lblk = block_in_file; in ext4_mpage_readpages()
302 map.m_len = last_block - block_in_file; in ext4_mpage_readpages()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Ddata.c2079 sector_t block_in_file; in f2fs_read_single_page() local
2085 block_in_file = (sector_t)page_index(page); in f2fs_read_single_page()
2086 last_block = block_in_file + nr_pages; in f2fs_read_single_page()
2093 if (block_in_file >= last_block) in f2fs_read_single_page()
2099 block_in_file > map->m_lblk && in f2fs_read_single_page()
2100 block_in_file < (map->m_lblk + map->m_len)) in f2fs_read_single_page()
2107 map->m_lblk = block_in_file; in f2fs_read_single_page()
2108 map->m_len = last_block - block_in_file; in f2fs_read_single_page()
2115 block_nr = map->m_pblk + block_in_file - map->m_lblk; in f2fs_read_single_page()