| Function report | 
| Source Code: mm\vmscan.c | Create Date:2022-07-28 14:18:19 | 
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This moves pages from @list to corresponding LRU list.* We move them the other way if the page is referenced by one or more* processes, from rmap.* If the pages are mostly unmapped, the processing is fast and it is
Proto:static unsigned __attribute__((__noinline__))move_pages_to_lru(struct lruvec *lruvec, struct list_head *list)
Type:unsigned
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct lruvec * | lruvec | |
| struct list_head * | list | 
| 1846 | pgdat = lruvec_pgdat(lruvec) | 
| 1847 | nr_moved = 0 | 
| 1848 | LIST_HEAD(pages_to_free) | 
| 1853 | page = lru_to_page(list) | 
| 1854 | VM_BUG_ON_PAGE(PageLRU(page), page) | 
| 1860 | Continue | 
| 1862 | lruvec = mem_cgroup_page_lruvec(page, pgdat) | 
| 1864 | SetPageLRU(page) | 
| 1865 | lru = page_lru - which LRU list should a page be on?*@page: the page to test* Returns the LRU list a page should be on, as an index* into the array of LRU lists. | 
| 1867 | nr_pages = hpage_nr_pages(page) | 
| 1868 | update_lru_size(lruvec, lru, page_zonenum(page), nr_pages) | 
| 1872 | __ClearPageLRU(page) | 
| 1873 | __ClearPageActive(page) | 
| 1874 | del_page_from_lru_list(page, lruvec, lru) | 
| 1878 | ( * get_compound_page_dtor(page))(page) | 
| 1882 | Else | 
| 1892 | Return nr_moved | 
| Name | Describe | 
|---|---|
| shrink_inactive_list | shrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages | 
| shrink_active_list | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |