From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 31 Jul 2003 19:20:51 +0100 (IST) From: Mel Gorman Subject: Re: Understanding page faults code in mm/memory.c In-Reply-To: Message-ID: References: <20030731111502.GA1591@eugeneteo.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Raghu R. Arur" Cc: Eugene Teo , linux-mm@kvack.org List-ID: On Thu, 31 Jul 2003, Raghu R. Arur wrote: > > No, what i meant was, if the rss value gets decremented when a page is > put into swap cache, then why is it not incremented in do_wp_page when you > fault for a page inside swap cache. Because paging in from the swap cache is handled by do_swap_page() which does increment rss, not do_wp_page(). -- Mel Gorman -- 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: aart@kvack.org