From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751533AbdALDL1 (ORCPT ); Wed, 11 Jan 2017 22:11:27 -0500 Received: from out0-153.mail.aliyun.com ([140.205.0.153]:40610 "EHLO out0-153.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020AbdALDLZ (ORCPT ); Wed, 11 Jan 2017 22:11:25 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03296;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---.7R-YF5q_1484190660; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Mel Gorman'" , "'Jesper Dangaard Brouer'" Cc: "'Linux Kernel'" , "'Linux-MM'" References: <20170109163518.6001-1-mgorman@techsingularity.net> <20170109163518.6001-3-mgorman@techsingularity.net> In-Reply-To: <20170109163518.6001-3-mgorman@techsingularity.net> Subject: Re: [PATCH 2/4] mm, page_alloc: Split alloc_pages_nodemask Date: Thu, 12 Jan 2017 11:11:00 +0800 Message-ID: <022301d26c81$807332e0$815998a0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQG2Y4yXFspOqM329TiynKhrR9O3PgLqEx3UoVTq7fA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, January 10, 2017 12:35 AM Mel Gorman wrote: > > alloc_pages_nodemask does a number of preperation steps that determine > what zones can be used for the allocation depending on a variety of > factors. This is fine but a hypothetical caller that wanted multiple > order-0 pages has to do the preparation steps multiple times. This patch > structures __alloc_pages_nodemask such that it's relatively easy to build > a bulk order-0 page allocator. There is no functional change. > > Signed-off-by: Mel Gorman > --- Acked-by: Hillf Danton