Function report |
Source Code:mm\ksm.c |
Create Date:2022-07-28 15:40:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stable_node_dup
Proto:static struct page *stable_node_dup(struct stable_node **_stable_node_dup, struct stable_node **_stable_node, struct rb_root *root, bool prune_stale_stable_nodes)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
struct stable_node ** | _stable_node_dup | |
struct stable_node ** | _stable_node | |
struct rb_root * | root | |
bool | prune_stale_stable_nodes |
1359 | found = NULL , stable_node = _stable_node |
1361 | struct page * _tree_page, * tree_page = NULL |
1362 | nr = 0 |
1370 | Else chain_prune_time = jiffies |
1375 | cond_resched() |
1387 | If Not _tree_page Then Continue |
1389 | nr += 1 |
1390 | If is_page_sharing_candidate(dup) Then |
1391 | If Not found || rmap_hlist_len > found_rmap_hlist_len Then |
1393 | If found Then Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page. |
1397 | tree_page = _tree_page |
1400 | If Not prune_stale_stable_nodes Then Break |
1402 | Continue |
1408 | If found Then |
1415 | If prune_stale_stable_nodes && nr == 1 Then |
1428 | rb_replace_node( & when node of stable tree , & when node of stable tree , root) |
1430 | free_stable_node(stable_node) |
1431 | The number of stable_node chains -- |
1438 | _stable_node = found |
1445 | stable_node = NULL |
1446 | Else if first != hlist_dup && __is_page_sharing_candidate(found, 1) Then |
1464 | hlist_add_head( & hlist_dup, & hlist) |
1469 | _stable_node_dup = found |
1470 | Return tree_page |
Name | Describe |
---|---|
__stable_node_chain | Like for get_ksm_page, this function can free the *_stable_node and* *_stable_node_dup if the returned tree_page is NULL |
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 |