函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zswap.c Create Date:2022-07-27 16:53:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:zswap_rb_erase

函数原型:static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry)

返回类型:void

参数:

类型参数名称
struct rb_root *root
struct zswap_entry *entry
313  如果非'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)则
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)
调用者
名称描述
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