From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 14E706B004F for ; Tue, 21 Apr 2009 02:38:11 -0400 (EDT) Date: Tue, 21 Apr 2009 15:33:37 +0900 From: Paul Mundt Subject: Re: [PATCH 03/25] Do not check NUMA node ID when the caller knows the node is valid Message-ID: <20090421063337.GB15167@linux-sh.org> References: <1240266011-11140-1-git-send-email-mel@csn.ul.ie> <1240266011-11140-4-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1240266011-11140-4-git-send-email-mel@csn.ul.ie> 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 , Pekka Enberg , Andrew Morton List-ID: On Mon, Apr 20, 2009 at 11:19:49PM +0100, 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 For the SLOB NUMA bits: Acked-by: Paul Mundt -- 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