From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756067AbXE2ShA (ORCPT ); Tue, 29 May 2007 14:37:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750836AbXE2Sgx (ORCPT ); Tue, 29 May 2007 14:36:53 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:54847 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750816AbXE2Sgw (ORCPT ); Tue, 29 May 2007 14:36:52 -0400 Date: Tue, 29 May 2007 11:36:51 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Mel Gorman cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kamezawa.hiroyu@jp.fujitsu.com Subject: Re: [PATCH 3/7] Allow CONFIG_MIGRATION to be set without CONFIG_NUMA In-Reply-To: Message-ID: References: <20070529173609.1570.4686.sendpatchset@skynet.skynet.ie> <20070529173710.1570.91203.sendpatchset@skynet.skynet.ie> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 May 2007, Mel Gorman wrote: > > > +config SYSCALL_MOVE_PAGES > > > + def_bool y > > > + depends on MIGRATION && NUMA > > > + > > > > Do we really need the CONFIG_SYSCALL_MOVE_PAGES? I think you will directly > > access the lower levels. So why have it? CONFIG_SYSCALL_MOVE_PAGES == > > CONFIG_NUMA. > > Without SYSCALL_MOVE_PAGES, the check in migrate.h becomes > > #if defined(CONFIG_NUMA) && defined(CONFIG_MIGRATION) > /* Check if a vma is migratable */ > static inline int vma_migratable(struct vm_area_struct *vma) > #endif Why do you need vma_migratable for the CONFIG_MIGRATION case? The use of vma_migratable in a !NUMA sitation would not be working right as far as I can tell. #ifdef CONFIG_NUMA is fine. > That in itself is fine but in mm/migrate.c I didn't want to define > sys_move_pages() in the non-NUMA case. Whatever about the header file where > SYSCALL_MOVE_PAGES obscures understanding, I think it makes sense to have > SYSCALL_MOVE_PAGES for mm/migrate.c . What do you think? Why do you need sys_move_pages for the non-NUMA case? The low level function that I intended to be used by defrag is migrate_pages and that one is outside of #ifdef CONFIG_NUMA.