]> Git Repo - linux.git/commit - mm/swap.c
mm: add variant of pagevec_lookup_range_tag() taking number of pages
authorJan Kara <[email protected]>
Thu, 16 Nov 2017 01:35:12 +0000 (17:35 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:04 +0000 (18:21 -0800)
commit93d3b7140ad379885849ad2674b4290c9e8273da
tree1f402ff4063c564273d5940a05641e5a9720ab49
parent2b9775ae422fa46b4aee2bb2a8d2184a5a3b90e0
mm: add variant of pagevec_lookup_range_tag() taking number of pages

Currently pagevec_lookup_range_tag() takes number of pages to look up
but most users don't need this.  Create a new function
pagevec_lookup_range_nr_tag() that takes maximum number of pages to
lookup for Ceph which wants this functionality so that we can drop
nr_pages argument from pagevec_lookup_range_tag().

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Daniel Jordan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/pagevec.h
mm/swap.c
This page took 0.080423 seconds and 4 git commands to generate.