linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] THP: need is_vma_temporary_stack() when reference transparent_hugepage_enabled
@ 2012-04-28  6:33 Alex Shi
  2012-04-30 23:05 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Shi @ 2012-04-28  6:33 UTC (permalink / raw)
  To: aarcange, riel, mgorman; +Cc: akpm, linux-kernel, alex.shi

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@intel.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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-04  7:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-28  6:33 [PATCH] THP: need is_vma_temporary_stack() when reference transparent_hugepage_enabled Alex Shi
2012-04-30 23:05 ` Andrew Morton
2012-05-02  3:17   ` Alex Shi
2012-05-02  3:31     ` Alex Shi
2012-05-02 17:55     ` Andrea Arcangeli
2012-05-03  0:56       ` Alex Shi
2012-05-03 11:25         ` Andrea Arcangeli
2012-05-04  7:26           ` Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).