Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ree functions

Proto:static struct zswap_entry *zswap_rb_search(struct rb_root *root, unsigned long offset)

Type:struct zswap_entry

Parameter:

TypeParameterName
struct rb_root *root
unsigned longoffset
269  node = rb_node
272  When node cycle
273  entry = rb_entry(node, structzswap_entry, rbnode)
274  If the swap offset for the entry. Index into the red-black tree. > offset Then node = rb_left
276  Else if the swap offset for the entry. Index into the red-black tree. < offset Then node = rb_right
278  Else Return entry
281  Return NULL
Caller
NameDescribe
zswap_entry_find_getaller must hold the tree lock
zswap_writeback_entry
zswap_frontswap_invalidate_pages an entry in zswap