Re: read_swap_cache_async - swapin_readahead - page_cache_release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 19 Sep 2004, Cristina Rivera wrote:

> I've been looking at code of read_swap_cache_async, swapin_readahead ,
> page_cache_release trying to understand what paper is doing every one of
> these three functions that are used in do_swap_page.  After doing that, I'm
> not completely sure of what operation is doing each one in the process of
> swapping in, can you make a quick preview of what are they doing?

You really want to start your swapin code reading in
do_swap_page() (in mm/memory.c).  That is the central
piece of code for paging in anonymous memory from the
swap cache.

Rik
-- 
"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

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux