]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hugetlbfs: use pagevec_lookup_range() in remove_inode_hugepages()
authorJan Kara <jack@suse.cz>
Wed, 6 Sep 2017 23:21:33 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Sep 2017 00:27:27 +0000 (17:27 -0700)
commit48f2301c07b299f5bcd64563d90215a8ba73e154
tree1fb6b9d603c6a1598668f77980cb07d54043489a
parent2b85a6171d1370903d65cc8b84cefca26a16b5e4
hugetlbfs: use pagevec_lookup_range() in remove_inode_hugepages()

We want only pages from given range in remove_inode_hugepages().  Use
pagevec_lookup_range() instead of pagevec_lookup().

Link: http://lkml.kernel.org/r/20170726114704.7626-8-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Nadia Yvette Chambers <nyc@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c