thp: introduce hugepage_vma_check()
authorBob Liu <lliubbo@gmail.com>
Wed, 12 Dec 2012 00:00:39 +0000 (16:00 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 Jun 2016 20:28:13 +0000 (21:28 +0100)
commit60477461b5c6bc501bd72e58e6d783a1a253d63f
tree1d5c41cf1dc50afe9b055257ba9579e97ba556af
parent7cd419255d03561d98c94fad1a027a539c4a7484
thp: introduce hugepage_vma_check()

commit fa475e517adb422cb3492e636195f9b2c0d009c8 upstream.

Multiple places do the same check.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Ni zhan Chen <nizhan.chen@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2:
 - Also move the is_linear_pfn_mapping() test
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
mm/huge_memory.c