hugetlb: move definition of is_vm_hugetlb_page() to hugepage_inline.h
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fri, 28 May 2010 00:29:15 +0000 (09:29 +0900)
committerAndi Kleen <ak@linux.intel.com>
Wed, 11 Aug 2010 07:20:41 +0000 (09:20 +0200)
commit8edf344c66a3f214d709dad1421c29d678915b3f
tree0b976d0c52ac5efddcd30c8cb60e44b2cc0029e2
parent9fe6206f400646a2322096b56c59891d530e8d51
hugetlb: move definition of is_vm_hugetlb_page() to hugepage_inline.h

is_vm_hugetlb_page() is a widely used inline function to insert hooks
into hugetlb code.
But we can't use it in pagemap.h because of circular dependency of
the header files. This patch removes this limitation.

Acked-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/linux/hugetlb.h
include/linux/hugetlb_inline.h [new file with mode: 0644]
include/linux/pagemap.h