Lines Matching refs:max_pages
312 unsigned long max_pages, index; in force_page_cache_ra() local
322 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra()
323 nr_to_read = min_t(unsigned long, nr_to_read, max_pages); in force_page_cache_ra()
557 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() local
567 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead()
568 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
584 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
600 max_pages); in ondemand_readahead()
603 if (!start || start - index > max_pages) in ondemand_readahead()
609 ra->size = get_next_ra_size(ra, max_pages); in ondemand_readahead()
617 if (req_size > max_pages) in ondemand_readahead()
634 max_pages)) in ondemand_readahead()
646 ra->size = get_init_ra_size(req_size, max_pages); in ondemand_readahead()
657 add_pages = get_next_ra_size(ra, max_pages); in ondemand_readahead()
658 if (ra->size + add_pages <= max_pages) { in ondemand_readahead()
662 ra->size = max_pages; in ondemand_readahead()
663 ra->async_size = max_pages >> 1; in ondemand_readahead()