函数逻辑报告 |
Source Code:mm\rmap.c |
Create Date:2022-07-27 16:26:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:page_remove_file_rmap
函数原型:static void page_remove_file_rmap(struct page *page, bool compound)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
bool | compound |
1234 | nr等于1 |
1236 | VM_BUG_ON_PAGE(compound && !PageHead(page), page) |
1237 | lock_page_memcg(page) |
1240 | 如果此条件成立可能性小(为编译器优化)(PageHuge(page))则 |
1242 | atomic_dec(compound_mapcount_ptr(page)) |
1243 | 转到:out |
1248 | 以i小于HPAGE_PMD_NR循环 |
1252 | 如果非atomic_add_negative( - 1, compound_mapcount_ptr(page))则转到:out |
1256 | 否则__dec_node_page_state(page, NR_FILE_PMDMAPPED) |
1258 | 否则 |
1268 | __mod_lruvec_page_state(page, pagecache pages mapped into pagetables. only modified from process context , - nr) |
1272 | out : |
1273 | unlock_page_memcg(page) |
名称 | 描述 |
---|---|
page_remove_rmap | page_remove_rmap - take down pte mapping from a page*@page: page to remove mapping from*@compound: uncharge the page as compound or small page* The caller needs to hold the pte lock. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |