Function report |
Source Code:mm\ksm.c |
Create Date:2022-07-28 15:41:22 |
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_search_insert - search for identical page,* else insert rmap_item into the unstable tree.* This function searches for a page in the unstable tree identical to the* page currently being scanned; and if no identical page is found in the
Proto:static struct rmap_item *unstable_tree_search_insert(struct rmap_item *rmap_item, struct page *page, struct page **tree_pagep)
Type:struct rmap_item
Parameter:
Type | Parameter | Name |
---|---|---|
struct rmap_item * | rmap_item | |
struct page * | page | |
struct page ** | tree_pagep |
1933 | root = root_unstable_tree + nid |
1941 | cond_resched() |
1942 | tree_rmap_item = rb_entry( * new, structrmap_item, node) |
1944 | If Not tree_page Then Return NULL |
1952 | Return NULL |
1955 | ret = memcmp_pages(page, tree_page) |
1958 | If ret < 0 Then |
1961 | Else if ret > 0 Then |
1964 | Else if Not Zeroed when merging across nodes is not allowed && page_to_nid(tree_page) != nid Then |
1972 | Return NULL |
1973 | Else |
1974 | tree_pagep = tree_page |
1975 | Return tree_rmap_item |
1981 | DO_NUMA( when node of unstable tree = nid) |
1982 | rb_link_node( & when node of unstable tree , parent, new) |
1983 | rb_insert_color( & when node of unstable tree , root) |
1986 | Return NULL |
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 |