Function report |
Source Code:mm\zswap.c |
Create Date:2022-07-28 15:22:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:In the case that a entry with the same offset is found, a pointer to* the existing entry is stored in dupentry and the function returns -EEXIST
Proto:static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, struct zswap_entry **dupentry)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct rb_root * | root | |
struct zswap_entry * | entry | |
struct zswap_entry ** | dupentry |
296 | myentry = rb_entry(parent, structzswap_entry, rbnode) |
297 | If the swap offset for the entry. Index into the red-black tree. > the swap offset for the entry. Index into the red-black tree. Then link = rb_left |
299 | Else if the swap offset for the entry. Index into the red-black tree. < the swap offset for the entry. Index into the red-black tree. Then link = rb_right |
301 | Else |
306 | rb_link_node( & links the entry into red-black tree for the appropriate swap type, parent, link) |
308 | Return 0 |
Name | Describe |
---|---|
zswap_frontswap_store | attempts to compress and store an single page |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |