函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:24:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:place_page_cache_page - replace a pagecache page with a new one*@old: page to be replaced*@new: page to replace with*@gfp_mask: allocation mode* This function replaces a page in the pagecache with a new one
函数原型:int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | old | |
| struct page * | new | |
| gfp_t | gfp_mask |
| 814 | (等于freepage |
| 819 | VM_BUG_ON_PAGE(!PageLocked(old), old) |
| 820 | VM_BUG_ON_PAGE(!PageLocked(new), new) |
| 827 | xas_lock_irqsave( & xas, flags) |
| 830 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
| 832 | 如果非PageHuge(old)则__dec_node_page_state(new, NR_FILE_PAGES) |
| 834 | 如果非PageHuge(new)则__inc_node_page_state(new, NR_FILE_PAGES) |
| 836 | 如果PageSwapBacked(old)则__dec_node_page_state(new, NR_SHMEM) |
| 838 | 如果PageSwapBacked(new)则__inc_node_page_state(new, NR_SHMEM) |
| 840 | xas_unlock_irqrestore( & xas, flags) |
| 841 | mem_cgroup_migrate(old, new) |
| 846 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |