if (mm != current <http://lxr.linux.no/ident?i=current>->mm && !ignore_token && has_swap_token <http://lxr.linux.no/ident?i=has_swap_token>(mm)) <http://lxr.linux.no/source/mm/rmap.c#L292> referenced++;
On Wed, 2 Mar 2005, Rahul Iyer wrote:
I think i worded it wrong... There is only 1 page cache. It's structure and replacement policy could be chosen at boot time. For example, you could select kernel boot time argument, say page_cache, as page_cache=LRU and the page cache would follow an LRU based replacement scheme. Or maybe page_cache=CART and you'd have CART instead.
That would work, but you would instead need to replace try_to_free_pages and friends, not the functions you gave.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/