From: akpm@linux-foundation.org Subject: + mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch added to -mm tree Date: Wed, 25 Sep 2013 18:08:20 -0700 Message-ID: <52438904.st9fZnD03HBo1Jv+%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51865 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827Ab3IZBIV (ORCPT ); Wed, 25 Sep 2013 21:08:21 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, mel@csn.ul.ie, liwanp@linux.vnet.ibm.com, kirill.shutemov@linux.intel.com, isimatu.yasuaki@jp.fujitsu.com, davidoff@qedmf.net, bob.liu@oracle.com, aarcange@redhat.com, lliubbo@gmail.com Subject: + mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch added to -mm tree To: lliubbo@gmail.com,aarcange@redhat.com,bob.liu@oracle.com,davidoff@qedmf.net,isimatu.yasuaki@jp.fujitsu.com,kirill.shutemov@linux.intel.com,liwanp@linux.vnet.ibm.com,mel@csn.ul.ie From: akpm@linux-foundation.org Date: Wed, 25 Sep 2013 18:08:20 -0700 The patch titled Subject: mm: thp: cleanup: mv alloc_hugepage to better place has been added to the -mm tree. Its filename is mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Bob Liu Subject: mm: thp: cleanup: mv alloc_hugepage to better place Move alloc_hugepage() to a better place, no need for a seperate #ifndef CONFIG_NUMA Signed-off-by: Bob Liu Reviewed-by: Yasuaki Ishimatsu Acked-by: Kirill A. Shutemov Cc: Andrea Arcangeli Cc: Mel Gorman Cc: Andrew Davidoff Cc: Wanpeng Li Signed-off-by: Andrew Morton --- mm/huge_memory.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff -puN mm/huge_memory.c~mm-thp-cleanup-mv-alloc_hugepage-to-better-place mm/huge_memory.c --- a/mm/huge_memory.c~mm-thp-cleanup-mv-alloc_hugepage-to-better-place +++ a/mm/huge_memory.c @@ -759,14 +759,6 @@ static inline struct page *alloc_hugepag 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