Home
last modified time | relevance | path

Searched refs:pgofs (Results 1 – 6 of 6) sorted by relevance

/fs/f2fs/
Dextent_cache.c527 static bool __lookup_extent_tree(struct inode *inode, pgoff_t pgofs, in __lookup_extent_tree() argument
539 trace_f2fs_lookup_extent_tree_start(inode, pgofs, type); in __lookup_extent_tree()
544 et->largest.fofs <= pgofs && in __lookup_extent_tree()
545 et->largest.fofs + et->largest.len > pgofs) { in __lookup_extent_tree()
553 (struct rb_entry *)et->cached_en, pgofs); in __lookup_extent_tree()
575 trace_f2fs_lookup_read_extent_tree_end(inode, pgofs, ei); in __lookup_extent_tree()
577 trace_f2fs_lookup_age_extent_tree_end(inode, pgofs, ei); in __lookup_extent_tree()
1037 bool f2fs_lookup_read_extent_cache(struct inode *inode, pgoff_t pgofs, in f2fs_lookup_read_extent_cache() argument
1043 return __lookup_extent_tree(inode, pgofs, ei, EX_READ); in f2fs_lookup_read_extent_cache()
1075 bool f2fs_lookup_age_extent_cache(struct inode *inode, pgoff_t pgofs, in f2fs_lookup_age_extent_cache() argument
[all …]
Ddata.c1483 pgoff_t pgofs, end_offset, end; in f2fs_map_blocks() local
1498 pgofs = (pgoff_t)map->m_lblk; in f2fs_map_blocks()
1499 end = pgofs + maxblocks; in f2fs_map_blocks()
1501 if (!create && f2fs_lookup_read_extent_cache(inode, pgofs, &ei)) { in f2fs_map_blocks()
1506 map->m_pblk = ei.blk + pgofs - ei.fofs; in f2fs_map_blocks()
1507 map->m_len = min((pgoff_t)maxblocks, ei.fofs + ei.len - pgofs); in f2fs_map_blocks()
1510 *map->m_next_extent = pgofs + map->m_len; in f2fs_map_blocks()
1525 err = f2fs_get_dnode_of_data(&dn, pgofs, mode); in f2fs_map_blocks()
1547 f2fs_get_next_page_offset(&dn, pgofs); in f2fs_map_blocks()
1550 f2fs_get_next_page_offset(&dn, pgofs); in f2fs_map_blocks()
[all …]
Dfile.c409 pgoff_t pgofs, end_offset; in f2fs_seek_block() local
431 pgofs = (pgoff_t)(offset >> PAGE_SHIFT); in f2fs_seek_block()
433 for (; data_ofs < isize; data_ofs = (loff_t)pgofs << PAGE_SHIFT) { in f2fs_seek_block()
435 err = f2fs_get_dnode_of_data(&dn, pgofs, LOOKUP_NODE); in f2fs_seek_block()
441 pgofs = f2fs_get_next_page_offset(&dn, pgofs); in f2fs_seek_block()
452 dn.ofs_in_node++, pgofs++, in f2fs_seek_block()
453 data_ofs = (loff_t)pgofs << PAGE_SHIFT) { in f2fs_seek_block()
466 pgofs, whence)) { in f2fs_seek_block()
Dnode.c646 pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs) in f2fs_get_next_page_offset() argument
657 return pgofs + 1; in f2fs_get_next_page_offset()
676 return ((pgofs - base) / skipped_unit + 1) * skipped_unit + base; in f2fs_get_next_page_offset()
Df2fs.h3544 pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs);
4126 bool f2fs_lookup_read_extent_cache(struct inode *inode, pgoff_t pgofs,
4136 bool f2fs_lookup_age_extent_cache(struct inode *inode, pgoff_t pgofs,
Dsegment.c3301 static int __get_age_segment_type(struct inode *inode, pgoff_t pgofs) in __get_age_segment_type() argument
3306 if (f2fs_lookup_age_extent_cache(inode, pgofs, &ei)) { in __get_age_segment_type()