Home
last modified time | relevance | path

Searched refs:max_pages (Results 1 – 4 of 4) sorted by relevance

/mm/
Dreadahead.c227 unsigned long max_pages; in force_page_cache_readahead() local
236 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_readahead()
237 nr_to_read = min(nr_to_read, max_pages); in force_page_cache_readahead()
388 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() local
396 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead()
397 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
412 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
427 start = page_cache_next_miss(mapping, offset + 1, max_pages); in ondemand_readahead()
430 if (!start || start - offset > max_pages) in ondemand_readahead()
436 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
[all …]
Dswap_state.c464 int max_pages, in __swapin_nr_pages() argument
490 if (pages > max_pages) in __swapin_nr_pages()
491 pages = max_pages; in __swapin_nr_pages()
504 unsigned int hits, pages, max_pages; in swapin_nr_pages() local
507 max_pages = 1 << READ_ONCE(page_cluster); in swapin_nr_pages()
508 if (max_pages <= 1) in swapin_nr_pages()
512 pages = __swapin_nr_pages(prev_offset, offset, hits, max_pages, in swapin_nr_pages()
Dswap_cgroup.c167 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument
177 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon()
Dswap.c1062 xa_mark_t tag, unsigned max_pages) in pagevec_lookup_range_nr_tag() argument
1065 min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); in pagevec_lookup_range_nr_tag()