Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function removes the given zspage from the freelist identified* by <class, fullness_group>.

Proto:static void remove_zspage(struct size_class *class, struct zspage *zspage, enum fullness_group fullness)

Type:void

Parameter:

TypeParameterName
struct size_class *class
struct zspage *zspage
enum fullness_groupfullness
750  VM_BUG_ON(list_empty - tests whether a list is empty*@head: the list to test.)
751  VM_BUG_ON(is_zspage_isolated(zspage))
753  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
754  ype can be of enum type zs_stat_type or fullness_group
Caller
NameDescribe
fix_fullness_groupEach size class maintains zspages in different fullness groups depending* on the number of live objects they contain. When allocating or freeing* objects, the fullness status of the page can change, say, from ALMOST_FULL
free_zspage
isolate_zspage