Lines Matching refs:max_pages
227 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()
444 if (req_size > max_pages) in ondemand_readahead()
460 if (try_context_readahead(mapping, ra, offset, req_size, max_pages)) in ondemand_readahead()
471 ra->size = get_init_ra_size(req_size, max_pages); in ondemand_readahead()
482 add_pages = get_next_ra_size(ra, max_pages); in ondemand_readahead()
483 if (ra->size + add_pages <= max_pages) { in ondemand_readahead()
487 ra->size = max_pages; in ondemand_readahead()
488 ra->async_size = max_pages >> 1; in ondemand_readahead()