From: Alex Shi <alex.shi@intel.com>
To: aarcange@redhat.com, riel@redhat.com, mgorman@suse.de
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
alex.shi@intel.com
Subject: [PATCH] THP: need is_vma_temporary_stack() when reference transparent_hugepage_enabled
Date: Sat, 28 Apr 2012 14:33:15 +0800 [thread overview]
Message-ID: <1335594795-30876-1-git-send-email-alex.shi@intel.com> (raw)
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
next reply other threads:[~2012-04-28 6:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 6:33 Alex Shi [this message]
2012-04-30 23:05 ` [PATCH] THP: need is_vma_temporary_stack() when reference transparent_hugepage_enabled 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335594795-30876-1-git-send-email-alex.shi@intel.com \
--to=alex.shi@intel.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=riel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).