[PATCH] freepgt: hugetlb_free_pgd_range
[linux-2.6.git] / include / asm-ia64 / page.h
index 24aab801a8caa60db0a48eb86c7cc5a2caeb03be..08894f73abf0384df70d33888228ee389be33bcb 100644 (file)
@@ -139,7 +139,7 @@ typedef union ia64_va {
 # define HUGETLB_PAGE_ORDER    (HPAGE_SHIFT - PAGE_SHIFT)
 # define is_hugepage_only_range(mm, addr, len)         \
         (REGION_NUMBER(addr) == REGION_HPAGE &&        \
-         REGION_NUMBER((addr)+(len)) == REGION_HPAGE)
+         REGION_NUMBER((addr)+(len)-1) == REGION_HPAGE)
 extern unsigned int hpage_shift;
 #endif