Sorry... that was a dumb question. My apologies.
4. what is the difference between shrink_cache() and shrink_caches(). note the 's'
Use ctags or cscope, and learn C ;)
Honestly, by now you should have seen that shrink_caches() calls shrink_zone(), which calls shrink_cache() ...
struct page_cache {
struct list_head[MAX_LISTS];
void (*add_to_cache)(struct page *p);
void (*del_from_cache)(struct page *);
void (*page_accessed)(struct page *);
};-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/