• Home
  • Raw
  • Download

Lines Matching refs:mapping

34 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping)  in file_ra_state_init()  argument
36 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init()
48 static void read_cache_pages_invalidate_page(struct address_space *mapping, in read_cache_pages_invalidate_page() argument
54 page->mapping = mapping; in read_cache_pages_invalidate_page()
56 page->mapping = NULL; in read_cache_pages_invalidate_page()
65 static void read_cache_pages_invalidate_pages(struct address_space *mapping, in read_cache_pages_invalidate_pages() argument
73 read_cache_pages_invalidate_page(mapping, victim); in read_cache_pages_invalidate_pages()
89 int read_cache_pages(struct address_space *mapping, struct list_head *pages, in read_cache_pages() argument
98 if (add_to_page_cache_lru(page, mapping, page->index, in read_cache_pages()
99 readahead_gfp_mask(mapping))) { in read_cache_pages()
100 read_cache_pages_invalidate_page(mapping, page); in read_cache_pages()
107 read_cache_pages_invalidate_pages(mapping, pages); in read_cache_pages()
120 const struct address_space_operations *aops = rac->mapping->a_ops; in read_pages()
137 aops->readpages(rac->file, rac->mapping, pages, in read_pages()
177 struct address_space *mapping = ractl->mapping; in page_cache_ra_unbounded() local
180 gfp_t gfp_mask = readahead_gfp_mask(mapping); in page_cache_ra_unbounded()
199 struct page *page = xa_load(&mapping->i_pages, index + i); in page_cache_ra_unbounded()
219 if (mapping->a_ops->readpages) { in page_cache_ra_unbounded()
222 } else if (add_to_page_cache_lru(page, mapping, index + i, in page_cache_ra_unbounded()
252 struct inode *inode = ractl->mapping->host; in do_page_cache_ra()
277 struct address_space *mapping = ractl->mapping; in force_page_cache_ra() local
278 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_ra()
281 if (unlikely(!mapping->a_ops->readpage && !mapping->a_ops->readpages && in force_page_cache_ra()
282 !mapping->a_ops->readahead)) in force_page_cache_ra()
386 static pgoff_t count_history_pages(struct address_space *mapping, in count_history_pages() argument
392 head = page_cache_prev_miss(mapping, index - 1, max); in count_history_pages()
401 static int try_context_readahead(struct address_space *mapping, in try_context_readahead() argument
409 size = count_history_pages(mapping, index, max); in try_context_readahead()
439 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ondemand_readahead()
480 start = page_cache_next_miss(ractl->mapping, index + 1, in ondemand_readahead()
514 if (try_context_readahead(ractl->mapping, ra, index, req_size, in ondemand_readahead()
600 if (inode_read_congested(ractl->mapping->host)) in page_cache_async_ra()