From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932221AbbFDSoo (ORCPT ); Thu, 4 Jun 2015 14:44:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:62162 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbbFDSol (ORCPT ); Thu, 4 Jun 2015 14:44:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,554,1427785200"; d="scan'208";a="705465795" Message-ID: <55709C98.1030005@intel.com> Date: Thu, 04 Jun 2015 11:44:40 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Xishi Qiu , Andrew Morton , nao.horiguchi@gmail.com, Yinghai Lu , "H. Peter Anvin" , Thomas Gleixner , mingo@elte.hu, Xiexiuqi , Hanjun Guo , "Luck, Tony" CC: Linux MM , LKML Subject: Re: [RFC PATCH 11/12] mm: add the PCP interface References: <55704A7E.5030507@huawei.com> <55704CED.1020702@huawei.com> In-Reply-To: <55704CED.1020702@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/04/2015 06:04 AM, Xishi Qiu wrote: > spin_lock(&zone->lock); > for (i = 0; i < count; ++i) { > - struct page *page = __rmqueue(zone, order, migratetype); > + struct page *page; > + > + if (is_migrate_mirror(migratetype)) > + page = __rmqueue_smallest(zone, order, migratetype); > + else > + page = __rmqueue(zone, order, migratetype); > if (unlikely(page == NULL)) > break; Why is this necessary/helpful? The changelog doesn't tell me either. :( Why was this code modified in stead of putting the changes in __rmqueue() itself (like CMA did)?