OSDN Git Service

mm/mempolicy: use helper range_in_vma() in queue_pages_test_walk()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 24 Feb 2021 20:09:47 +0000 (12:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:34 +0000 (13:38 -0800)
commitce33135cdee6e2c2874e9d1198a6df0c5f356080
treecf30bbdbe5af57de23feefc20e01aa13f4a90ae2
parentbda420b985054a3badafef23807c4b4fa38a3dff
mm/mempolicy: use helper range_in_vma() in queue_pages_test_walk()

The helper range_in_vma() is introduced via commit 017b1660df89 ("mm:
migration: fix migration of huge PMD shared pages"). But we forgot to
use it in queue_pages_test_walk().

Link: https://lkml.kernel.org/r/20210130091352.20220-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c