[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1335594795-30876-1-git-send-email-alex.shi@intel.com>
Date: Sat, 28 Apr 2012 14:33:15 +0800
From: Alex Shi <alex.shi@...el.com>
To: aarcange@...hat.com, riel@...hat.com, mgorman@...e.de
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
alex.shi@...el.com
Subject: [PATCH] THP: need is_vma_temporary_stack() when reference transparent_hugepage_enabled
When the transparent_hugepage_enabled() used out of mm/,
is_vma_temporary_stack() need be referenced. Otherwise, it has compile
error.
Signed-off-by: Alex Shi <alex.shi@...el.com>
---
include/linux/huge_mm.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h
index c8af7a2..10254ac 100644
--- a/include/linux/huge_mm.h
+++ b/include/linux/huge_mm.h
@@ -59,6 +59,7 @@ extern pmd_t *page_check_address_pmd(struct page *page,
#define HPAGE_PMD_MASK HPAGE_MASK
#define HPAGE_PMD_SIZE HPAGE_SIZE
+extern bool is_vma_temporary_stack(struct vm_area_struct *vma);
#define transparent_hugepage_enabled(__vma) \
((transparent_hugepage_flags & \
(1<<TRANSPARENT_HUGEPAGE_FLAG) || \
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists