mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: remove nr_pages argument from pagevec_lookup{,_range}()
All users of pagevec_lookup() and pagevec_lookup_range() now pass PAGEVEC_SIZE as a desired number of pages. Just drop the argument. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f7b6804687
commit
397162ffa2
8 changed files with 13 additions and 18 deletions
|
|
@ -967,10 +967,9 @@ void pagevec_remove_exceptionals(struct pagevec *pvec)
|
|||
* reached.
|
||||
*/
|
||||
unsigned pagevec_lookup_range(struct pagevec *pvec,
|
||||
struct address_space *mapping, pgoff_t *start, pgoff_t end,
|
||||
unsigned nr_pages)
|
||||
struct address_space *mapping, pgoff_t *start, pgoff_t end)
|
||||
{
|
||||
pvec->nr = find_get_pages_range(mapping, start, end, nr_pages,
|
||||
pvec->nr = find_get_pages_range(mapping, start, end, PAGEVEC_SIZE,
|
||||
pvec->pages);
|
||||
return pagevec_count(pvec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue