Home
last modified time | relevance | path

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

12345678

/Linux-v5.4/include/linux/
Dpagemap.h231 pgoff_t page_cache_next_miss(struct address_space *mapping,
232 pgoff_t index, unsigned long max_scan);
233 pgoff_t page_cache_prev_miss(struct address_space *mapping,
234 pgoff_t index, unsigned long max_scan);
244 struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,
258 pgoff_t offset) in find_get_page()
264 pgoff_t offset, int fgp_flags) in find_get_page_flags()
283 pgoff_t offset) in find_lock_page()
308 pgoff_t offset, gfp_t gfp_mask) in find_or_create_page()
329 pgoff_t index) in grab_cache_page_nowait()
[all …]
Dpagevec.h30 pgoff_t start, unsigned nr_entries,
31 pgoff_t *indices);
35 pgoff_t *start, pgoff_t end);
38 pgoff_t *start) in pagevec_lookup()
40 return pagevec_lookup_range(pvec, mapping, start, (pgoff_t)-1); in pagevec_lookup()
44 struct address_space *mapping, pgoff_t *index, pgoff_t end,
47 struct address_space *mapping, pgoff_t *index, pgoff_t end,
50 struct address_space *mapping, pgoff_t *index, xa_mark_t tag) in pagevec_lookup_tag()
52 return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag); in pagevec_lookup_tag()
Dfrontswap.h19 int (*store)(unsigned, pgoff_t, struct page *); /* store a page */
20 int (*load)(unsigned, pgoff_t, struct page *); /* load a page */
21 void (*invalidate_page)(unsigned, pgoff_t); /* page no longer needed */
33 extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
37 extern void __frontswap_invalidate_page(unsigned, pgoff_t);
48 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
71 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
103 static inline void frontswap_invalidate_page(unsigned type, pgoff_t offset) in frontswap_invalidate_page()
Ddax.h23 long (*direct_access)(struct dax_device *, pgoff_t, long,
32 size_t (*copy_from_iter)(struct dax_device *, pgoff_t, void *, size_t,
35 size_t (*copy_to_iter)(struct dax_device *, pgoff_t, void *, size_t,
113 int bdev_dax_pgoff(struct block_device *, sector_t, size_t, pgoff_t *pgoff);
204 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages,
208 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
210 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
220 int dax_delete_mapping_entry(struct address_space *mapping, pgoff_t index);
222 pgoff_t index);
Dshmem_fs.h75 pgoff_t index, gfp_t gfp_mask);
82 pgoff_t start, pgoff_t end);
94 extern int shmem_getpage(struct inode *inode, pgoff_t index,
98 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.h397 pgoff_t start, pgoff_t end);
404 pgoff_t start, pgoff_t end);
Dmm.h421 pgoff_t pgoff; /* Logical page offset based on vma */
476 pgoff_t start_pgoff, pgoff_t end_pgoff);
1362 extern pgoff_t __page_file_index(struct page *page);
1368 static inline pgoff_t page_index(struct page *page) in page_index()
1435 pgoff_t first_index; /* Lowest page->index to unmap */
1436 pgoff_t last_index; /* Highest page->index to unmap */
1482 pgoff_t start, pgoff_t nr, bool even_cows);
1502 pgoff_t start, pgoff_t nr, bool even_cows) { } in unmap_mapping_pages()
2266 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert,
2269 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert) in vma_adjust()
[all …]
/Linux-v5.4/mm/
Dtruncate.c35 pgoff_t index, void *entry) in __clear_shadow_entry()
46 static void clear_shadow_entry(struct address_space *mapping, pgoff_t index, in clear_shadow_entry()
60 struct pagevec *pvec, pgoff_t *indices, in truncate_exceptional_pvec_entries()
61 pgoff_t end) in truncate_exceptional_pvec_entries()
84 pgoff_t index = indices[i]; in truncate_exceptional_pvec_entries()
112 pgoff_t index, void *entry) in invalidate_exceptional_entry()
126 pgoff_t index, void *entry) in invalidate_exceptional_entry2()
180 pgoff_t nr = PageTransHuge(page) ? HPAGE_PMD_NR : 1; in truncate_cleanup_page()
294 pgoff_t start; /* inclusive */ in truncate_inode_pages_range()
295 pgoff_t end; /* exclusive */ in truncate_inode_pages_range()
[all …]
Dreadahead.c156 struct file *filp, pgoff_t offset, unsigned long nr_to_read, in __do_page_cache_readahead()
177 pgoff_t page_offset = offset + page_idx; in __do_page_cache_readahead()
223 pgoff_t offset, unsigned long nr_to_read) in force_page_cache_readahead()
332 static pgoff_t count_history_pages(struct address_space *mapping, in count_history_pages()
333 pgoff_t offset, unsigned long max) in count_history_pages()
335 pgoff_t head; in count_history_pages()
349 pgoff_t offset, in try_context_readahead()
353 pgoff_t size; in try_context_readahead()
384 bool hit_readahead_marker, pgoff_t offset, in ondemand_readahead()
390 pgoff_t prev_offset; in ondemand_readahead()
[all …]
Dfilemap.c477 pgoff_t max = end_byte >> PAGE_SHIFT; in filemap_range_has_page()
506 pgoff_t index = start_byte >> PAGE_SHIFT; in __filemap_fdatawait_range()
507 pgoff_t end = end_byte >> PAGE_SHIFT; in __filemap_fdatawait_range()
815 pgoff_t offset = old->index; in replace_page_cache_page()
852 pgoff_t offset, gfp_t gfp_mask, in __add_to_page_cache_locked()
929 pgoff_t offset, gfp_t gfp_mask) in add_to_page_cache_locked()
937 pgoff_t offset, gfp_t gfp_mask) in add_to_page_cache_lru()
1459 pgoff_t page_cache_next_miss(struct address_space *mapping, in page_cache_next_miss()
1460 pgoff_t index, unsigned long max_scan) in page_cache_next_miss()
1495 pgoff_t page_cache_prev_miss(struct address_space *mapping, in page_cache_prev_miss()
[all …]
Dshmem.c105 pgoff_t start; /* start of range currently being fallocated */
106 pgoff_t next; /* the next page offset to be fallocated */
107 pgoff_t nr_falloced; /* how many new pages have been fallocated */
108 pgoff_t nr_unswapped; /* how often writepage refused to swap out */
141 struct shmem_inode_info *info, pgoff_t index);
142 static int shmem_swapin_page(struct inode *inode, pgoff_t index,
146 static int shmem_getpage_gfp(struct inode *inode, pgoff_t index,
151 int shmem_getpage(struct inode *inode, pgoff_t index, in shmem_getpage()
354 pgoff_t index, void *expected, void *replacement) in shmem_replace_entry()
376 pgoff_t index, swp_entry_t swap) in shmem_confirm_swap()
[all …]
Dfrontswap.c216 pgoff_t offset) in __frontswap_test()
225 pgoff_t offset) in __frontswap_set()
232 pgoff_t offset) in __frontswap_clear()
251 pgoff_t offset = swp_offset(entry); in __frontswap_store()
300 pgoff_t offset = swp_offset(entry); in __frontswap_load()
331 void __frontswap_invalidate_page(unsigned type, pgoff_t offset) in __frontswap_invalidate_page()
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.c992 pgoff_t start, unsigned nr_entries, in pagevec_lookup_entries()
993 pgoff_t *indices) in pagevec_lookup_entries()
1042 struct address_space *mapping, pgoff_t *start, pgoff_t end) in pagevec_lookup_range()
1051 struct address_space *mapping, pgoff_t *index, pgoff_t end, in pagevec_lookup_range_tag()
1061 struct address_space *mapping, pgoff_t *index, pgoff_t end, in pagevec_lookup_range_nr_tag()
/Linux-v5.4/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 …]
Dfscache.h374 __field(pgoff_t, page )
461 __field(pgoff_t, page )
487 __field(pgoff_t, page )
505 void **results, int n, pgoff_t store_limit),
512 __field(pgoff_t, results0 )
514 __field(pgoff_t, store_limit )
520 __entry->results0 = results[0] ? ((struct page *)results[0])->index : (pgoff_t)-1;
Dafs.h767 pgoff_t first, pgoff_t last, unsigned int offset),
773 __field(pgoff_t, first )
774 __field(pgoff_t, last )
799 TP_PROTO(struct afs_call *call, pgoff_t first, pgoff_t last,
800 pgoff_t cursor, int ret),
806 __field(pgoff_t, first )
807 __field(pgoff_t, last )
808 __field(pgoff_t, cursor )
862 pgoff_t page, unsigned long priv),
869 __field(pgoff_t, page )
/Linux-v5.4/fs/verity/
Dverify.c26 pgoff_t dindex, unsigned int level, pgoff_t *hindex, in hash_at_level()
29 pgoff_t position; in hash_at_level()
54 pgoff_t index, int level) in cmp_hashes()
91 const pgoff_t index = data_page->index; in verify_page()
111 pgoff_t hindex; in verify_page()
/Linux-v5.4/fs/afs/
Dwrite.c87 pgoff_t index = pos >> PAGE_SHIFT; in afs_write_begin()
233 pgoff_t first, pgoff_t last) in afs_kill_pages()
276 pgoff_t first, pgoff_t last) in afs_redirty_pages()
315 pgoff_t first, pgoff_t last) in afs_pages_written_back()
355 pgoff_t first, pgoff_t last, in afs_store_data()
454 pgoff_t final_page) in afs_write_back_from_locked_page()
460 pgoff_t start, first, last; in afs_write_back_from_locked_page()
633 pgoff_t index, pgoff_t end, pgoff_t *_next) in afs_writepages_region()
700 pgoff_t start, end, next; in afs_writepages()
714 end = (pgoff_t)(LLONG_MAX >> PAGE_SHIFT); in afs_writepages()
/Linux-v5.4/fs/f2fs/
Dfile.c342 static pgoff_t __get_first_dirty_index(struct address_space *mapping, in __get_first_dirty_index()
343 pgoff_t pgofs, int whence) in __get_first_dirty_index()
362 pgoff_t dirty, pgoff_t pgofs, int whence) in __found_offset()
383 pgoff_t pgofs, end_offset, dirty; in f2fs_seek_block()
401 pgofs = (pgoff_t)(offset >> PAGE_SHIFT); in f2fs_seek_block()
549 pgoff_t fofs; in f2fs_truncate_data_blocks_range()
575 pgoff_t index = from >> PAGE_SHIFT; in truncate_partial_data_page()
609 pgoff_t free_from; in f2fs_truncate_blocks()
616 free_from = (pgoff_t)F2FS_BLK_ALIGN(from); in f2fs_truncate_blocks()
892 static int fill_zero(struct inode *inode, pgoff_t index, in fill_zero()
[all …]
Dnode.h193 static inline pgoff_t current_nat_addr(struct f2fs_sb_info *sbi, nid_t start) in current_nat_addr()
196 pgoff_t block_off; in current_nat_addr()
197 pgoff_t block_addr; in current_nat_addr()
206 block_addr = (pgoff_t)(nm_i->nat_blkaddr + in current_nat_addr()
216 static inline pgoff_t next_nat_addr(struct f2fs_sb_info *sbi, in next_nat_addr()
217 pgoff_t block_addr) in next_nat_addr()
/Linux-v5.4/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()
310 pgoff_t offset = page->index; in nilfs_copy_back_pages()
363 pgoff_t index = 0; in nilfs_clear_dirty_pages()
496 pgoff_t index; in nilfs_find_uncommitted_extent()
/Linux-v5.4/fs/gfs2/
Daops.c95 pgoff_t end_index = i_size >> PAGE_SHIFT; in gfs2_writepage()
126 const pgoff_t end_index = i_size >> PAGE_SHIFT; in gfs2_write_full_page()
242 pgoff_t *done_index) in gfs2_write_jdata_pagevec()
340 pgoff_t uninitialized_var(writeback_index); in gfs2_write_cache_jdata()
341 pgoff_t index; in gfs2_write_cache_jdata()
342 pgoff_t end; in gfs2_write_cache_jdata()
343 pgoff_t done_index; in gfs2_write_cache_jdata()
/Linux-v5.4/drivers/md/
Ddm-linear.c166 static long linear_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in linear_dax_direct_access()
182 static size_t linear_dax_copy_from_iter(struct dm_target *ti, pgoff_t pgoff, in linear_dax_copy_from_iter()
196 static size_t linear_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff, in linear_dax_copy_to_iter()

12345678