From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 6 Sep 2003 22:17:37 -0400 (EDT) From: Rik van Riel Subject: Re: swap_free() inside delete_from_swap_cache In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Raghu R. Arur" Cc: kernelnewbies@nl.linux.org, linux-mm@kvack.org List-ID: On Fri, 5 Sep 2003, Raghu R. Arur wrote: > Why is swap_free() called inside delete_from_swap_cache() in linux > 2.4.19? I believe delete_from_swap_cache() is called when we write a > page to the swap disk. swap_free() decreases the count of number of > references to that page. The swap cache itself has one of the references to the location on swap. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- 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