Lines Matching refs:max_pages
281 unsigned long max_pages, index; in force_page_cache_ra() local
292 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra()
293 nr_to_read = min_t(unsigned long, nr_to_read, max_pages); in force_page_cache_ra()
442 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() local
451 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead()
452 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
467 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
483 max_pages); in ondemand_readahead()
486 if (!start || start - index > max_pages) in ondemand_readahead()
492 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
500 if (req_size > max_pages) in ondemand_readahead()
517 max_pages)) in ondemand_readahead()
529 ra->size = get_init_ra_size(req_size, max_pages); in ondemand_readahead()
540 add_pages = get_next_ra_size(ra, max_pages); in ondemand_readahead()
541 if (ra->size + add_pages <= max_pages) { in ondemand_readahead()
545 ra->size = max_pages; in ondemand_readahead()
546 ra->async_size = max_pages >> 1; in ondemand_readahead()