thp: introduce hugepage_vma_check()
authorBob Liu <lliubbo@gmail.com>
Wed, 12 Dec 2012 00:00:39 +0000 (16:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:22 +0000 (17:22 -0800)
commitfa475e517adb422cb3492e636195f9b2c0d009c8
tree832d357b2c403087ee9980742ecc1ad4e546ccb4
parent6219049ae1ce32b89236646cccaec2a5fc6c4fd2
thp: introduce hugepage_vma_check()

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>
mm/huge_memory.c