Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\workingset.c Create Date:2022-07-28 14:33:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pack_shadow

Proto:static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction, bool workingset)

Type:void

Parameter:

TypeParameterName
intmemcgid
pg_data_t *pgdat
unsigned longeviction
boolworkingset
187  eviction >>= Eviction timestamps need to be able to cover the full range of* actionable refaults. However, bits are tight in the xarray* entry, and after storing the identifier for the lruvec there might* not be enough left to represent every single actionable refault
188  eviction &= EVICTION_MASK
189  eviction = eviction << MEM_CGROUP_ID_SHIFT | memcgid
190  eviction = eviction << NODES_SHIFT | node_id
191  eviction = eviction << 1 | workingset
193  Return xa_mk_value() - Create an XArray entry from an integer.*@v: Value to store in XArray.* Context: Any context.* Return: An entry suitable for storing in the XArray.
Caller
NameDescribe
workingset_evictionworkingset_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