This page describes the call chain that the kernel follows when swapping pages out to free up memory pages. Here is the call chain we will discuss in this article. shrink_lruvec() shrink_list() shrink_inactive_list() isolate_lru_pages() shrink_page_list() add_to_swap() get_swap_page() scan_swap_map() add_to_swap_cache() __add_to_swap_cache