From: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
To: Bob Liu <lliubbo@gmail.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
aarcange@redhat.com, kirill.shutemov@linux.intel.com,
mgorman@suse.de, konrad.wilk@oracle.com, davidoff@qedmf.net,
Bob Liu <bob.liu@oracle.com>
Subject: Re: [PATCH 1/2] mm: thp: cleanup: mv alloc_hugepage to better place
Date: Tue, 10 Sep 2013 10:28:30 +0900 [thread overview]
Message-ID: <522E75BE.4080505@jp.fujitsu.com> (raw)
In-Reply-To: <1378093542-31971-1-git-send-email-bob.liu@oracle.com>
(2013/09/02 12:45), Bob Liu wrote:
> Move alloc_hugepage to better place, no need for a seperate #ifndef CONFIG_NUMA
>
> Signed-off-by: Bob Liu <bob.liu@oracle.com>
> ---
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Thanks,
Yasuaki Ishimatsu
> mm/huge_memory.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/mm/huge_memory.c b/mm/huge_memory.c
> index a92012a..7448cf9 100644
> --- a/mm/huge_memory.c
> +++ b/mm/huge_memory.c
> @@ -753,14 +753,6 @@ static inline struct page *alloc_hugepage_vma(int defrag,
> HPAGE_PMD_ORDER, vma, haddr, nd);
> }
>
> -#ifndef CONFIG_NUMA
> -static inline struct page *alloc_hugepage(int defrag)
> -{
> - return alloc_pages(alloc_hugepage_gfpmask(defrag, 0),
> - HPAGE_PMD_ORDER);
> -}
> -#endif
> -
> static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm,
> struct vm_area_struct *vma, unsigned long haddr, pmd_t *pmd,
> struct page *zero_page)
> @@ -2204,6 +2196,12 @@ static struct page
> return *hpage;
> }
> #else
> +static inline struct page *alloc_hugepage(int defrag)
> +{
> + return alloc_pages(alloc_hugepage_gfpmask(defrag, 0),
> + HPAGE_PMD_ORDER);
> +}
> +
> static struct page *khugepaged_alloc_hugepage(bool *wait)
> {
> struct page *hpage;
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2013-09-10 1:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 3:45 [PATCH 1/2] mm: thp: cleanup: mv alloc_hugepage to better place Bob Liu
2013-09-02 3:45 ` [PATCH 2/2] mm: thp: khugepaged: add policy for finding target node Bob Liu
2013-09-07 15:32 ` Andrew Davidoff
2013-09-10 0:45 ` Yasuaki Ishimatsu
2013-09-10 0:55 ` Wanpeng Li
2013-09-10 2:19 ` Yasuaki Ishimatsu
2013-09-10 0:55 ` Wanpeng Li
2013-09-10 2:51 ` Yasuaki Ishimatsu
2013-09-10 14:28 ` Bob Liu
2013-09-11 2:23 ` Yasuaki Ishimatsu
2013-09-02 10:55 ` [PATCH 1/2] mm: thp: cleanup: mv alloc_hugepage to better place Kirill A. Shutemov
2013-09-07 15:31 ` Andrew Davidoff
2013-09-10 1:28 ` Yasuaki Ishimatsu [this message]
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=522E75BE.4080505@jp.fujitsu.com \
--to=isimatu.yasuaki@jp.fujitsu.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=bob.liu@oracle.com \
--cc=davidoff@qedmf.net \
--cc=kirill.shutemov@linux.intel.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-mm@kvack.org \
--cc=lliubbo@gmail.com \
--cc=mgorman@suse.de \
/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).