Searched refs:max_pages (Results 1 – 4 of 4) sorted by relevance
/mm/ |
D | readahead.c | 289 unsigned long max_pages, index; in force_page_cache_ra() local 300 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra() 301 nr_to_read = min_t(unsigned long, nr_to_read, max_pages); in force_page_cache_ra() 450 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() local 459 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead() 460 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead() 462 trace_android_vh_ra_tuning_max_page(ractl, &max_pages); in ondemand_readahead() 477 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead() 493 max_pages); in ondemand_readahead() 496 if (!start || start - index > max_pages) in ondemand_readahead() [all …]
|
D | swap_state.c | 574 int max_pages, in __swapin_nr_pages() argument 600 if (pages > max_pages) in __swapin_nr_pages() 601 pages = max_pages; in __swapin_nr_pages() 614 unsigned int hits, pages, max_pages; in swapin_nr_pages() local 617 max_pages = 1 << READ_ONCE(page_cluster); in swapin_nr_pages() 618 if (max_pages <= 1) in swapin_nr_pages() 623 max_pages, in swapin_nr_pages()
|
D | swap_cgroup.c | 167 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument 174 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon()
|
D | swap.c | 1299 xa_mark_t tag, unsigned max_pages) in pagevec_lookup_range_nr_tag() argument 1302 min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); in pagevec_lookup_range_nr_tag()
|