aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKen Chen <kenneth.w.chen@intel.com>2007-10-28 21:40:41 +0100
committerAdrian Bunk <bunk@kernel.org>2007-10-28 21:40:41 +0100
commit42ea9d4b9da1bb26d519f91c9464fd093c7a56a2 (patch)
treefae7fc3bf2682c571c0f00a2376a5bb806f08a8a /include
parentbd5dd01bad40e1702c3933e2f9a46be89834715b (diff)
[IA64] fix ia64 is_hugepage_only_range
fix is_hugepage_only_range() definition to be "overlaps" instead of "within architectural restricted hugetlb address range". Simplify the ia64 specific code that used to use is_hugepage_only_range() to just check which region the address is in. Signed-off-by: Ken Chen <kenneth.w.chen@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ia64/page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ia64/page.h b/include/asm-ia64/page.h
index 5e6362a786b7..051f301a9071 100644
--- a/include/asm-ia64/page.h
+++ b/include/asm-ia64/page.h
@@ -147,7 +147,7 @@ typedef union ia64_va {
| (REGION_OFFSET(x) >> (HPAGE_SHIFT-PAGE_SHIFT)))
# define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
# define is_hugepage_only_range(mm, addr, len) \
- (REGION_NUMBER(addr) == RGN_HPAGE && \
+ (REGION_NUMBER(addr) == RGN_HPAGE || \
REGION_NUMBER((addr)+(len)-1) == RGN_HPAGE)
extern unsigned int hpage_shift;
#endif