diff options
author | Jan Kara <jack@suse.cz> | 2017-09-06 16:21:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 17:27:26 -0700 |
commit | b947cee4b96306037e166ff1ea5156c0ecdd7d91 (patch) | |
tree | 1a6791039e7d4b5a822445598b94aa71162dd65a /kernel/freezer.c | |
parent | d72dc8a25afc71ce90ee92bdd77550e9beb85d4d (diff) | |
download | linux-b947cee4b96306037e166ff1ea5156c0ecdd7d91.tar.bz2 |
mm: implement find_get_pages_range()
Implement a variant of find_get_pages() that stops iterating at given
index. This may be substantial performance gain if the mapping is
sparse. See following commit for details. Furthermore lots of users of
this function (through pagevec_lookup()) actually want a range lookup
and all of them are currently open-coding this.
Also create corresponding pagevec_lookup_range() function.
Link: http://lkml.kernel.org/r/20170726114704.7626-4-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions