Lines Matching refs:index
304 pgoff_t index, unsigned long max_scan);
306 pgoff_t index, unsigned long max_scan);
356 pgoff_t index) in find_lock_page() argument
358 return pagecache_get_page(mapping, index, FGP_LOCK, 0); in find_lock_page()
375 pgoff_t index) in find_lock_head() argument
377 return pagecache_get_page(mapping, index, FGP_LOCK | FGP_HEAD, 0); in find_lock_head()
400 pgoff_t index, gfp_t gfp_mask) in find_or_create_page() argument
402 return pagecache_get_page(mapping, index, in find_or_create_page()
421 pgoff_t index) in grab_cache_page_nowait() argument
423 return pagecache_get_page(mapping, index, in grab_cache_page_nowait()
429 static inline bool thp_contains(struct page *head, pgoff_t index) in thp_contains() argument
433 return head->index == index; in thp_contains()
434 return page_index(head) == (index & ~(thp_nr_pages(head) - 1UL)); in thp_contains()
441 static inline struct page *find_subpage(struct page *head, pgoff_t index) in find_subpage() argument
447 return head + (index & (thp_nr_pages(head) - 1)); in find_subpage()
465 unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index,
469 pgoff_t *index, xa_mark_t tag, unsigned int nr_pages, in find_get_pages_tag() argument
472 return find_get_pages_range_tag(mapping, index, (pgoff_t)-1, tag, in find_get_pages_tag()
477 pgoff_t index, unsigned flags);
483 pgoff_t index) in grab_cache_page() argument
485 return find_or_create_page(mapping, index, mapping_gfp_mask(mapping)); in grab_cache_page()
489 pgoff_t index, filler_t *filler, void *data);
491 pgoff_t index, gfp_t gfp_mask);
496 pgoff_t index, void *data) in read_mapping_page() argument
498 return read_cache_page(mapping, index, NULL, data); in read_mapping_page()
510 return page->index; in page_to_index()
516 pgoff = compound_head(page)->index; in page_to_index()
539 return ((loff_t)page->index) << PAGE_SHIFT; in page_offset()
753 pgoff_t index, gfp_t gfp_mask);
755 pgoff_t index, gfp_t gfp_mask);
833 struct file_ra_state *ra, struct file *file, pgoff_t index, in page_cache_sync_readahead() argument
836 DEFINE_READAHEAD(ractl, file, mapping, index); in page_cache_sync_readahead()
857 struct page *page, pgoff_t index, unsigned long req_count) in page_cache_async_readahead() argument
859 DEFINE_READAHEAD(ractl, file, mapping, index); in page_cache_async_readahead()
999 pgoff_t index = size >> PAGE_SHIFT; in page_mkwrite_check_truncate() local
1006 if (page->index < index) in page_mkwrite_check_truncate()
1009 if (page->index > index || !offset) in page_mkwrite_check_truncate()