Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zswap_rb_erase

Proto:static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry)

Type:void

Parameter:

TypeParameterName
struct rb_root *root
struct zswap_entry *entry
313  If Not 'empty' nodes are nodes that are known not to be inserted in an rbtree ( & links the entry into red-black tree for the appropriate swap type) Then
314  rb_erase( & links the entry into red-black tree for the appropriate swap type, root)
315  RB_CLEAR_NODE( & links the entry into red-black tree for the appropriate swap type)
Caller
NameDescribe
zswap_entry_putaller must hold the tree lock* remove from the tree and free it, if nobody reference the entry
zswap_frontswap_storeattempts to compress and store an single page
zswap_frontswap_invalidate_pages an entry in zswap