| Function report | 
| Source Code: mm\workingset.c | Create Date:2022-07-28 14:33:10 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:workingset_eviction - note the eviction of a page from memory*@target_memcg: the cgroup that is causing the reclaim*@page: the page being evicted* Returns a shadow entry to be stored in @page->mapping->i_pages in place
Proto:void *workingset_eviction(struct page *page, struct mem_cgroup *target_memcg)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| struct mem_cgroup * | target_memcg | 
| 247 | pgdat = page_pgdat(page) | 
| 253 | VM_BUG_ON_PAGE(PageLRU(page), page) | 
| 254 | VM_BUG_ON_PAGE(page_count(page), page) | 
| 255 | VM_BUG_ON_PAGE(!PageLocked(page), page) | 
| 257 | advance_inactive_age(page_memcg(page), pgdat) | 
| 261 | memcgid = mem_cgroup_id(lruvec_memcg(lruvec)) | 
| 263 | Return pack_shadow(memcgid, pgdat, eviction, PageWorkingset(page)) | 
| 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 |