函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:23:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:unaccount_page_cache_page
函数原型:static void unaccount_page_cache_page(struct address_space *mapping, struct page *page)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct address_space * | mapping | |
| struct page * | page |
| 168 | 否则cleancache_invalidate_page(mapping, page) |
| 171 | VM_BUG_ON_PAGE(PageTail(page), page) |
| 172 | VM_BUG_ON_PAGE(page_mapped(page), page) |
| 176 | 打印警报信息("BUG: Bad page cache in process %s pfn:%05lx\n", comm, page_to_pfn(page)) |
| 179 | dump_stack() |
| 182 | mapcount等于page_mapcount(page) |
| 183 | 如果mapping_exiting(mapping)且page_count(page)大于等于mapcount加2则 |
| 200 | nr等于hpage_nr_pages(page) |
| 202 | __mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, - nr) |
| 203 | 如果PageSwapBacked(page)则 |
| 204 | __mod_node_page_state(page_pgdat(page), NR_SHMEM, - nr) |
| 222 | 如果WARN_ON_ONCE(PageDirty(page))则account_page_cleaned(page, mapping, inode_to_wb(host)) |
| 名称 | 描述 |
|---|---|
| __delete_from_page_cache | Delete a page from the page cache and free it. Caller has to make* sure the page is locked and that nobody else uses it - or that usage* is safe. The caller must hold the i_pages lock. |
| delete_from_page_cache_batch |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |