* swap_free() inside delete_from_swap_cache
@ 2003-09-06 2:02 Raghu R. Arur
2003-09-07 2:17 ` Rik van Riel
0 siblings, 1 reply; 2+ messages in thread
From: Raghu R. Arur @ 2003-09-06 2:02 UTC (permalink / raw)
To: kernelnewbies; +Cc: linux-mm
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. I am not understanding why should we decrement the count of
references when we are swapping the page to the disk.
Thanks,
Raghu
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: swap_free() inside delete_from_swap_cache
2003-09-06 2:02 swap_free() inside delete_from_swap_cache Raghu R. Arur
@ 2003-09-07 2:17 ` Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2003-09-07 2:17 UTC (permalink / raw)
To: Raghu R. Arur; +Cc: kernelnewbies, linux-mm
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-07 2:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-06 2:02 swap_free() inside delete_from_swap_cache Raghu R. Arur
2003-09-07 2:17 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox