Function report |
Source Code:mm\ksm.c |
Create Date:2022-07-28 15:41:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stable_tree_append - add another rmap_item to the linked list of* rmap_items hanging off a given node of the stable tree, all sharing* the same ksm page.
Proto:static void stable_tree_append(struct rmap_item *rmap_item, struct stable_node *stable_node, bool max_page_sharing_bypass)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rmap_item * | rmap_item | |
| struct stable_node * | stable_node | |
| bool | max_page_sharing_bypass |
| 2008 | BUG_ON(rmap_hlist_len < 0) |
| 2010 | rmap_hlist_len++ |
| 2011 | If Not max_page_sharing_bypass Then WARN_ON_ONCE(rmap_hlist_len > Maximum number of page slots sharing a stable node ) |
| 2018 | hlist_add_head( & hlist, & hlist) |
| 2020 | If next Then The number of page slots additionally sharing those nodes ++ |
| 2022 | Else The number of nodes in the stable tree ++ |
| Name | Describe |
|---|---|
| cmp_and_merge_page | mp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and |
| 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 |