Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:putback_zspage - add @zspage into right class's fullness list*@class: destination class*@zspage: target page* Return @zspage's fullness_group

Proto:static enum fullness_group putback_zspage(struct size_class *class, struct zspage *zspage)

Type:enum fullness_group

Parameter:

TypeParameterName
struct size_class *class
struct zspage *zspage
1781  VM_BUG_ON(is_zspage_isolated(zspage))
1783  fullness = For each size class, zspages are divided into different groups* depending on how "full" they are. This was done so that we could* easily find empty or nearly empty zspages when we try to shrink* the pool (not yet implemented)
1784  Each size class maintains various freelists and zspages are assigned* to one of these freelists based on the number of live objects they* have. This functions inserts the given zspage into the freelist* identified by .
1785  set_zspage_mapping(zspage, index, fullness)
1787  Return fullness
Caller
NameDescribe
__zs_compact