From: Rik van Riel <riel@redhat.com>
To: "Raghu R. Arur" <rra2002@cs.columbia.edu>
Cc: kernelnewbies@nl.linux.org, linux-mm@kvack.org
Subject: Re: swap_free() inside delete_from_swap_cache
Date: Sat, 6 Sep 2003 22:17:37 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0309062217090.6028-100000@chimarrao.boston.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0309052200580.440-100000@tehran.clic.cs.columbia.edu>
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: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2003-09-07 2:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-06 2:02 Raghu R. Arur
2003-09-07 2:17 ` Rik van Riel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0309062217090.6028-100000@chimarrao.boston.redhat.com \
--to=riel@redhat.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-mm@kvack.org \
--cc=rra2002@cs.columbia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox