From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with ESMTP id 15B156B005A for ; Tue, 21 Apr 2009 02:04:12 -0400 (EDT) Message-ID: <49ED60E9.4030005@cs.helsinki.fi> Date: Tue, 21 Apr 2009 09:00:09 +0300 From: Pekka Enberg MIME-Version: 1.0 Subject: Re: [PATCH 03/25] Do not check NUMA node ID when the caller knows the node is valid References: <1240266011-11140-1-git-send-email-mel@csn.ul.ie> <1240266011-11140-4-git-send-email-mel@csn.ul.ie> In-Reply-To: <1240266011-11140-4-git-send-email-mel@csn.ul.ie> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Linux Memory Management List , KOSAKI Motohiro , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Andrew Morton List-ID: Mel Gorman wrote: > Callers of alloc_pages_node() can optionally specify -1 as a node to mean > "allocate from the current node". However, a number of the callers in fast > paths know for a fact their node is valid. To avoid a comparison and branch, > this patch adds alloc_pages_exact_node() that only checks the nid with > VM_BUG_ON(). Callers that know their node is valid are then converted. > > Signed-off-by: Mel Gorman > Reviewed-by: Christoph Lameter Reviewed-by: Pekka Enberg -- 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