From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755000AbaEMW0J (ORCPT ); Tue, 13 May 2014 18:26:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56082 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbaEMWZ5 (ORCPT ); Tue, 13 May 2014 18:25:57 -0400 Date: Tue, 13 May 2014 15:25:56 -0700 From: Andrew Morton To: Mel Gorman Cc: Johannes Weiner , Vlastimil Babka , Jan Kara , Michal Hocko , Hugh Dickins , Peter Zijlstra , Dave Hansen , Linux Kernel , Linux-MM , Linux-FSDevel Subject: Re: [PATCH 05/19] mm: page_alloc: Calculate classzone_idx once from the zonelist ref Message-Id: <20140513152556.d14e3eaff8949a7010c02686@linux-foundation.org> In-Reply-To: <1399974350-11089-6-git-send-email-mgorman@suse.de> References: <1399974350-11089-1-git-send-email-mgorman@suse.de> <1399974350-11089-6-git-send-email-mgorman@suse.de> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 May 2014 10:45:36 +0100 Mel Gorman wrote: > There is no need to calculate zone_idx(preferred_zone) multiple times > or use the pgdat to figure it out. > This one falls afoul of pending mm/next changes in non-trivial ways.