Home
last modified time | relevance | path

Searched refs:pgoff_t (Results 1 – 25 of 184) sorted by relevance

12345678

/Linux-v4.19/include/linux/
Dpagemap.h244 pgoff_t page_cache_next_hole(struct address_space *mapping,
245 pgoff_t index, unsigned long max_scan);
246 pgoff_t page_cache_prev_hole(struct address_space *mapping,
247 pgoff_t index, unsigned long max_scan);
256 struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,
270 pgoff_t offset) in find_get_page()
276 pgoff_t offset, int fgp_flags) in find_get_page_flags()
295 pgoff_t offset) in find_lock_page()
320 pgoff_t offset, gfp_t gfp_mask) in find_or_create_page()
341 pgoff_t index) in grab_cache_page_nowait()
[all …]
Dpagevec.h28 pgoff_t start, unsigned nr_entries,
29 pgoff_t *indices);
33 pgoff_t *start, pgoff_t end);
36 pgoff_t *start) in pagevec_lookup()
38 return pagevec_lookup_range(pvec, mapping, start, (pgoff_t)-1); in pagevec_lookup()
42 struct address_space *mapping, pgoff_t *index, pgoff_t end,
45 struct address_space *mapping, pgoff_t *index, pgoff_t end,
48 struct address_space *mapping, pgoff_t *index, int tag) in pagevec_lookup_tag()
50 return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag); in pagevec_lookup_tag()
Dfrontswap.h12 int (*store)(unsigned, pgoff_t, struct page *); /* store a page */
13 int (*load)(unsigned, pgoff_t, struct page *); /* load a page */
14 void (*invalidate_page)(unsigned, pgoff_t); /* page no longer needed */
26 extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
30 extern void __frontswap_invalidate_page(unsigned, pgoff_t);
41 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
64 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
96 static inline void frontswap_invalidate_page(unsigned type, pgoff_t offset) in frontswap_invalidate_page()
Ddax.h18 long (*direct_access)(struct dax_device *, pgoff_t, long,
21 size_t (*copy_from_iter)(struct dax_device *, pgoff_t, void *, size_t,
24 size_t (*copy_to_iter)(struct dax_device *, pgoff_t, void *, size_t,
68 int bdev_dax_pgoff(struct block_device *, sector_t, size_t, pgoff_t *pgoff);
141 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages,
143 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
145 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
155 int dax_delete_mapping_entry(struct address_space *mapping, pgoff_t index);
157 pgoff_t index);
Dshmem_fs.h73 pgoff_t index, gfp_t gfp_mask);
79 pgoff_t start, pgoff_t end);
91 extern int shmem_getpage(struct inode *inode, pgoff_t index,
95 struct address_space *mapping, pgoff_t index) in shmem_read_mapping_page()
Dcleancache.h33 pgoff_t, struct page *);
35 pgoff_t, struct page *);
36 void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t);
Dwriteback.h367 pgoff_t start, pgoff_t end);
374 pgoff_t start, pgoff_t end);
Dmm.h347 pgoff_t pgoff; /* Logical page offset based on vma */
402 pgoff_t start_pgoff, pgoff_t end_pgoff);
1204 extern pgoff_t __page_file_index(struct page *page);
1210 static inline pgoff_t page_index(struct page *page) in page_index()
1319 pgoff_t first_index; /* Lowest page->index to unmap */
1320 pgoff_t last_index; /* Highest page->index to unmap */
1412 pgoff_t start, pgoff_t nr, bool even_cows);
1432 pgoff_t start, pgoff_t nr, bool even_cows) { } in unmap_mapping_pages()
2220 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert,
2223 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert) in vma_adjust()
[all …]
/Linux-v4.19/mm/
Dtruncate.c34 pgoff_t index, void *entry) in __clear_shadow_entry()
48 static void clear_shadow_entry(struct address_space *mapping, pgoff_t index, in clear_shadow_entry()
62 struct pagevec *pvec, pgoff_t *indices, in truncate_exceptional_pvec_entries()
63 pgoff_t end) in truncate_exceptional_pvec_entries()
86 pgoff_t index = indices[i]; in truncate_exceptional_pvec_entries()
114 pgoff_t index, void *entry) in invalidate_exceptional_entry()
128 pgoff_t index, void *entry) in invalidate_exceptional_entry2()
182 pgoff_t nr = PageTransHuge(page) ? HPAGE_PMD_NR : 1; in truncate_cleanup_page()
296 pgoff_t start; /* inclusive */ in truncate_inode_pages_range()
297 pgoff_t end; /* exclusive */ in truncate_inode_pages_range()
[all …]
Dreadahead.c153 struct file *filp, pgoff_t offset, unsigned long nr_to_read, in __do_page_cache_readahead()
174 pgoff_t page_offset = offset + page_idx; in __do_page_cache_readahead()
222 pgoff_t offset, unsigned long nr_to_read) in force_page_cache_readahead()
333 static pgoff_t count_history_pages(struct address_space *mapping, in count_history_pages()
334 pgoff_t offset, unsigned long max) in count_history_pages()
336 pgoff_t head; in count_history_pages()
350 pgoff_t offset, in try_context_readahead()
354 pgoff_t size; in try_context_readahead()
385 bool hit_readahead_marker, pgoff_t offset, in ondemand_readahead()
391 pgoff_t prev_offset; in ondemand_readahead()
[all …]
Dfilemap.c331 pgoff_t start; in page_cache_tree_delete_batch()
494 pgoff_t index = start_byte >> PAGE_SHIFT; in filemap_range_has_page()
495 pgoff_t end = end_byte >> PAGE_SHIFT; in filemap_range_has_page()
514 pgoff_t index = start_byte >> PAGE_SHIFT; in __filemap_fdatawait_range()
515 pgoff_t end = end_byte >> PAGE_SHIFT; in __filemap_fdatawait_range()
795 pgoff_t offset = old->index; in replace_page_cache_page()
828 pgoff_t offset, gfp_t gfp_mask, in __add_to_page_cache_locked()
891 pgoff_t offset, gfp_t gfp_mask) in add_to_page_cache_locked()
899 pgoff_t offset, gfp_t gfp_mask) in add_to_page_cache_lru()
1349 pgoff_t page_cache_next_hole(struct address_space *mapping, in page_cache_next_hole()
[all …]
Dfrontswap.c217 pgoff_t offset) in __frontswap_test()
226 pgoff_t offset) in __frontswap_set()
233 pgoff_t offset) in __frontswap_clear()
252 pgoff_t offset = swp_offset(entry); in __frontswap_store()
301 pgoff_t offset = swp_offset(entry); in __frontswap_load()
332 void __frontswap_invalidate_page(unsigned type, pgoff_t offset) in __frontswap_invalidate_page()
Dshmem.c103 pgoff_t start; /* start of range currently being fallocated */
104 pgoff_t next; /* the next page offset to be fallocated */
105 pgoff_t nr_falloced; /* how many new pages have been fallocated */
106 pgoff_t nr_unswapped; /* how often writepage refused to swap out */
123 struct shmem_inode_info *info, pgoff_t index);
124 static int shmem_getpage_gfp(struct inode *inode, pgoff_t index,
129 int shmem_getpage(struct inode *inode, pgoff_t index, in shmem_getpage()
328 pgoff_t index, void *expected, void *replacement) in shmem_radix_tree_replace()
354 pgoff_t index, swp_entry_t swap) in shmem_confirm_swap()
589 pgoff_t index, void *expected) in shmem_add_to_page_cache()
[all …]
Dswap_cgroup.c66 pgoff_t offset) in __lookup_swap_cgroup()
79 pgoff_t offset = swp_offset(ent); in lookup_swap_cgroup()
133 pgoff_t offset = swp_offset(ent); in swap_cgroup_record()
134 pgoff_t end = offset + nr_ents; in swap_cgroup_record()
Dswap.c945 pgoff_t start, unsigned nr_entries, in pagevec_lookup_entries()
946 pgoff_t *indices) in pagevec_lookup_entries()
995 struct address_space *mapping, pgoff_t *start, pgoff_t end) in pagevec_lookup_range()
1004 struct address_space *mapping, pgoff_t *index, pgoff_t end, in pagevec_lookup_range_tag()
1014 struct address_space *mapping, pgoff_t *index, pgoff_t end, in pagevec_lookup_range_nr_tag()
/Linux-v4.19/include/trace/events/
Dfs_dax.h12 pgoff_t max_pgoff, int result),
20 __field(pgoff_t, pgoff)
21 __field(pgoff_t, max_pgoff)
57 pgoff_t max_pgoff, int result), \
160 __field(pgoff_t, pgoff)
228 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),
232 __field(pgoff_t, start_index)
233 __field(pgoff_t, end_index)
253 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),\
260 TP_PROTO(struct inode *inode, pgoff_t pgoff, pgoff_t pglen),
[all …]
Dafs.h360 pgoff_t first, pgoff_t last, unsigned int offset),
366 __field(pgoff_t, first )
367 __field(pgoff_t, last )
392 TP_PROTO(struct afs_call *call, pgoff_t first, pgoff_t last,
393 pgoff_t cursor, int ret),
399 __field(pgoff_t, first )
400 __field(pgoff_t, last )
401 __field(pgoff_t, cursor )
455 pgoff_t page, unsigned long priv),
462 __field(pgoff_t, page )
Dfscache.h378 __field(pgoff_t, page )
465 __field(pgoff_t, page )
491 __field(pgoff_t, page )
509 void **results, int n, pgoff_t store_limit),
516 __field(pgoff_t, results0 )
518 __field(pgoff_t, store_limit )
524 __entry->results0 = results[0] ? ((struct page *)results[0])->index : (pgoff_t)-1;
/Linux-v4.19/fs/
Ddax.c119 pgoff_t entry_start;
128 pgoff_t index, void *entry, struct exceptional_entry_key *key) in dax_entry_waitqueue()
166 pgoff_t index, void *entry, bool wake_all) in dax_wake_mapping_entry_waiter()
230 pgoff_t index, void ***slotp, bool (*wait_fn)(void)) in __get_unlocked_mapping_entry()
275 pgoff_t index, void ***slotp) in get_unlocked_mapping_entry()
280 static void unlock_mapping_entry(struct address_space *mapping, pgoff_t index) in unlock_mapping_entry()
297 pgoff_t index) in put_locked_mapping_entry()
307 pgoff_t index, void *entry) in put_unlocked_mapping_entry()
411 pgoff_t index; in dax_lock_mapping_entry()
501 static void *grab_mapping_entry(struct address_space *mapping, pgoff_t index, in grab_mapping_entry()
[all …]
/Linux-v4.19/fs/afs/
Dwrite.c81 pgoff_t index = pos >> PAGE_SHIFT; in afs_write_begin()
227 pgoff_t first, pgoff_t last) in afs_kill_pages()
269 pgoff_t first, pgoff_t last) in afs_redirty_pages()
308 pgoff_t first, pgoff_t last, in afs_store_data()
395 pgoff_t final_page) in afs_write_back_from_locked_page()
401 pgoff_t start, first, last; in afs_write_back_from_locked_page()
573 pgoff_t index, pgoff_t end, pgoff_t *_next) in afs_writepages_region()
640 pgoff_t start, end, next; in afs_writepages()
654 end = (pgoff_t)(LLONG_MAX >> PAGE_SHIFT); in afs_writepages()
676 pgoff_t first = call->first, last = call->last; in afs_pages_written_back()
/Linux-v4.19/fs/f2fs/
Dfile.c335 static pgoff_t __get_first_dirty_index(struct address_space *mapping, in __get_first_dirty_index()
336 pgoff_t pgofs, int whence) in __get_first_dirty_index()
355 pgoff_t dirty, pgoff_t pgofs, int whence) in __found_offset()
376 pgoff_t pgofs, end_offset, dirty; in f2fs_seek_block()
394 pgofs = (pgoff_t)(offset >> PAGE_SHIFT); in f2fs_seek_block()
537 pgoff_t fofs; in f2fs_truncate_data_blocks_range()
563 pgoff_t index = from >> PAGE_SHIFT; in truncate_partial_data_page()
597 pgoff_t free_from; in f2fs_truncate_blocks()
604 free_from = (pgoff_t)F2FS_BLK_ALIGN(from); in f2fs_truncate_blocks()
864 static int fill_zero(struct inode *inode, pgoff_t index, in fill_zero()
[all …]
Dnode.h196 static inline pgoff_t current_nat_addr(struct f2fs_sb_info *sbi, nid_t start) in current_nat_addr()
199 pgoff_t block_off; in current_nat_addr()
200 pgoff_t block_addr; in current_nat_addr()
209 block_addr = (pgoff_t)(nm_i->nat_blkaddr + in current_nat_addr()
219 static inline pgoff_t next_nat_addr(struct f2fs_sb_info *sbi, in next_nat_addr()
220 pgoff_t block_addr) in next_nat_addr()
Ddata.c323 struct inode *inode, nid_t ino, pgoff_t idx) in __has_merged_page()
355 nid_t ino, pgoff_t idx, enum page_type type) in has_merged_page()
397 struct inode *inode, nid_t ino, pgoff_t idx, in __submit_merged_write_cond()
421 struct inode *inode, nid_t ino, pgoff_t idx, in f2fs_submit_merged_write_cond()
673 int f2fs_reserve_block(struct dnode_of_data *dn, pgoff_t index) in f2fs_reserve_block()
689 int f2fs_get_block(struct dnode_of_data *dn, pgoff_t index) in f2fs_get_block()
702 struct page *f2fs_get_read_data_page(struct inode *inode, pgoff_t index, in f2fs_get_read_data_page()
761 struct page *f2fs_find_data_page(struct inode *inode, pgoff_t index) in f2fs_find_data_page()
791 struct page *f2fs_get_lock_data_page(struct inode *inode, pgoff_t index, in f2fs_get_lock_data_page()
824 struct page *ipage, pgoff_t index, bool new_i_size) in f2fs_get_new_data_page()
[all …]
/Linux-v4.19/drivers/xen/
Dtmem.c168 pgoff_t index, struct page *page) in tmem_cleancache_put_page()
182 pgoff_t index, struct page *page) in tmem_cleancache_get_page()
201 pgoff_t index) in tmem_cleancache_flush_page()
279 static int tmem_frontswap_store(unsigned type, pgoff_t offset, in tmem_frontswap_store()
308 static int tmem_frontswap_load(unsigned type, pgoff_t offset, in tmem_frontswap_load()
329 static void tmem_frontswap_flush_page(unsigned type, pgoff_t offset) in tmem_frontswap_flush_page()
/Linux-v4.19/fs/nilfs2/
Dpage.c29 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, in __nilfs_get_page_block()
53 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer()
246 pgoff_t index = 0; in nilfs_copy_dirty_pages()
300 pgoff_t index = 0; in nilfs_copy_back_pages()
311 pgoff_t offset = page->index; in nilfs_copy_back_pages()
365 pgoff_t index = 0; in nilfs_clear_dirty_pages()
499 pgoff_t index; in nilfs_find_uncommitted_extent()

12345678