函数逻辑报告 |
Source Code:mm\ksm.c |
Create Date:2022-07-27 17:14:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static struct rmap_item *unstable_tree_search_insert(struct rmap_item *rmap_item, struct page *page, struct page **tree_pagep)
返回类型:struct rmap_item
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果非tree_page则返回:NULL |
1952 | 返回:NULL |
1955 | ret等于memcmp_pages(page, tree_page) |
1958 | 如果ret小于0则 |
1961 | 否则如果ret大于0则 |
1964 | 否则如果非Zeroed when merging across nodes is not allowed 且page_to_nid(tree_page)不等于nid则 |
1972 | 返回:NULL |
1973 | 否则 |
1974 | tree_pagep等于tree_page |
1975 | 返回: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 | 返回:NULL |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |