Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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  Return pack_shadow(memcgid, pgdat, eviction, PageWorkingset(page))