From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 26 Oct 2005 09:48:32 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH 3/5] Swap Migration V4: migrate_pages() function In-Reply-To: <1130310934.1226.29.camel@localhost> Message-ID: References: <20051025193023.6828.89649.sendpatchset@schroedinger.engr.sgi.com> <20051025193039.6828.74991.sendpatchset@schroedinger.engr.sgi.com> <1130310934.1226.29.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Dave Hansen Cc: Andrew Morton , Marcelo Tosatti , Mike Kravetz , Ray Bryant , Lee Schermerhorn , Linux Kernel Mailing List , linux-mm , Magnus Damm , Paul Jackson , KAMEZAWA Hiroyuki List-ID: On Wed, 26 Oct 2005, Dave Hansen wrote: > Why is this #ifdef needed? PageSwapCache() is #defined to 0 when ! > CONFIG_SWAP. Right. Index: linux-2.6.14-rc5-mm1/mm/vmscan.c =================================================================== --- linux-2.6.14-rc5-mm1.orig/mm/vmscan.c 2005-10-26 09:46:20.000000000 -0700 +++ linux-2.6.14-rc5-mm1/mm/vmscan.c 2005-10-26 09:47:33.000000000 -0700 @@ -387,7 +387,6 @@ static inline int remove_mapping(struct if (unlikely(PageDirty(page))) goto cannot_free; -#ifdef CONFIG_SWAP if (PageSwapCache(page)) { swp_entry_t swap = { .val = page_private(page) }; add_to_swapped_list(swap.val); @@ -397,7 +396,6 @@ static inline int remove_mapping(struct __put_page(page); /* The pagecache ref */ return 1; } -#endif /* CONFIG_SWAP */ __remove_from_page_cache(page); write_unlock_irq(&mapping->tree_lock); -- 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