From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 15 Sep 2006 10:38:43 -0700 (PDT) From: Christoph Lameter Subject: [PATCH] Disable GFP_THISNODE in the non-NUMA case In-Reply-To: <20060914220011.2be9100a.akpm@osdl.org> Message-ID: References: <20060914220011.2be9100a.akpm@osdl.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: linux-mm@kvack.org List-ID: GFP_THISNODE must be set to 0 in the non numa case otherwise we disable retry and warnings for failing allocations in the SMP and UP case. Signed-off-by: Christoph Lameter Index: linux-2.6.18-rc6-mm2/include/linux/gfp.h =================================================================== --- linux-2.6.18-rc6-mm2.orig/include/linux/gfp.h 2006-09-15 12:17:39.000000000 -0500 +++ linux-2.6.18-rc6-mm2/include/linux/gfp.h 2006-09-15 12:29:06.607417253 -0500 @@ -67,7 +67,12 @@ struct vm_area_struct; #define GFP_HIGHUSER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL | \ __GFP_HIGHMEM) +#ifdef CONFIG_NUMA #define GFP_THISNODE (__GFP_THISNODE | __GFP_NOWARN | __GFP_NORETRY) +#else +#define GFP_THISNODE 0 +#endif + /* Flag - indicates that the buffer will be suitable for DMA. Ignored on some platforms, used as appropriate on others */ -- 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