From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by kanga.kvack.org (Postfix) with ESMTP id 3C4026B0035 for ; Wed, 6 Aug 2014 18:26:38 -0400 (EDT) Received: by mail-pa0-f50.google.com with SMTP id et14so4142243pad.23 for ; Wed, 06 Aug 2014 15:26:37 -0700 (PDT) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [2607:f8b0:400e:c02::230]) by mx.google.com with ESMTPS id rn13si1873569pab.178.2014.08.06.15.26.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Aug 2014 15:26:37 -0700 (PDT) Received: by mail-pd0-f176.google.com with SMTP id y10so4007018pdj.7 for ; Wed, 06 Aug 2014 15:26:36 -0700 (PDT) Date: Wed, 6 Aug 2014 15:26:34 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH 1/4] mm: page_alloc: determine migratetype only once In-Reply-To: <1407333356-30928-2-git-send-email-vbabka@suse.cz> Message-ID: References: <1407333356-30928-1-git-send-email-vbabka@suse.cz> <1407333356-30928-2-git-send-email-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Mel Gorman , Rik van Riel , Johannes Weiner , "Srivatsa S. Bhat" , Hugh Dickins , Minchan Kim , Joonsoo Kim On Wed, 6 Aug 2014, Vlastimil Babka wrote: > The check for ALLOC_CMA in __alloc_pages_nodemask() derives migratetype > from gfp_mask in each retry pass, although the migratetype variable already > has the value determined and it does not change. Use the variable and perform > the check only once. Also convert #ifdef CONFIC_CMA to IS_ENABLED. > > Signed-off-by: Vlastimil Babka Acked-by: David Rientjes -- 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: email@kvack.org