From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by kanga.kvack.org (Postfix) with ESMTP id 10724900138 for ; Sun, 28 Aug 2011 22:29:46 -0400 (EDT) Message-ID: <4E5AF989.106@redhat.com> Date: Mon, 29 Aug 2011 10:29:29 +0800 From: Cong Wang MIME-Version: 1.0 Subject: Re: [Patch] numa: introduce CONFIG_NUMA_SYSFS for drivers/base/node.c References: <20110804145834.3b1d92a9eeb8357deb84bf83@canb.auug.org.au> <20110804152211.ea10e3e7.rdunlap@xenotime.net> <20110823143912.0691d442.akpm@linux-foundation.org> <4E547155.8090709@redhat.com> <20110824191430.8a908e70.rdunlap@xenotime.net> <4E55C221.8080100@redhat.com> <20110824205044.7ff45b6c.rdunlap@xenotime.net> <4E562248.2090102@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Randy Dunlap , Andrew Morton , Stephen Rothwell , gregkh@suse.de, linux-next@vger.kernel.org, LKML , linux-mm@kvack.org ao? 2011a1'08ae??26ae?JPY 04:57, David Rientjes a??e??: > On Thu, 25 Aug 2011, Cong Wang wrote: > >>> No, it doesn't work, CONFIG_HUGETLBFS can be enabled with CONFIG_NUMA=y >>> and CONFIG_SYSFS=n and that uses data structures from drivers/base/node.c >>> which doesn't get compiled with this patch. >> >> So, you mean with CONFIG_NUMA=y&& CONFIG_SYSFS=n&& CONFIG_HUGETLBFS=y >> we still get compile error? >> >> Which data structures are used by hugetlbfs? >> > > node_states[], which is revealed at link time if you tried to compile your > patch. It's obvious that we don't want to add per-node hugetlbfs > attributes to sysfs directories if sysfs is disabled, so you need to > modify the hugetlbfs code as well. Makes sense. Thanks! -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org