]> git.baikalelectronics.ru Git - kernel.git/commit
mm: make pagevec_lookup() update index
authorJan Kara <jack@suse.cz>
Wed, 6 Sep 2017 23:21:18 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Sep 2017 00:27:26 +0000 (17:27 -0700)
commit31cf493d36b9504554f351d700c24a0ba7e30f96
treeda47df20fe7bd2672f8368a2545f82e17703820b
parent9b1e8d6e835da5c0d23ce9d848ca03de1d2816a2
mm: make pagevec_lookup() update index

Make pagevec_lookup() (and underlying find_get_pages()) update index to
the next page where iteration should continue.  Most callers want this
and also pagevec_lookup_tag() already does this.

Link: http://lkml.kernel.org/r/20170726114704.7626-3-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>
fs/buffer.c
fs/ext4/file.c
fs/ext4/inode.c
fs/fscache/page.c
fs/hugetlbfs/inode.c
fs/nilfs2/page.c
fs/ramfs/file-nommu.c
include/linux/pagemap.h
include/linux/pagevec.h
mm/filemap.c
mm/swap.c