函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\workingset.c Create Date:2022-07-27 15:58:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void *workingset_eviction(struct page *page, struct mem_cgroup *target_memcg)

返回类型:void

参数:

类型参数名称
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)
259  lruvec等于mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
261  memcgid等于mem_cgroup_id(lruvec_memcg(lruvec))
262  eviction等于atomic_long_read( & Evictions & activations on the inactive file list )
263  返回:pack_shadow(memcgid, pgdat, eviction, PageWorkingset(page))
调用者
名称描述
__remove_mappingSame as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0.