函数逻辑报告 |
Source Code:mm\page-writeback.c |
Create Date:2022-07-27 15:34:47 |
Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Helper function for set_page_dirty family.* Caller must hold lock_page_memcg().* NOTE: This relies on being atomic wrt interrupts.
函数原型:void account_page_dirtied(struct page *page, struct address_space *mapping)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
struct address_space * | mapping |
2418 | 如果mapping_cap_account_dirty(mapping)则 |
2421 | inode_attach_wb(inode, page) |
2422 | wb等于inode_to_wb(inode) |
2426 | __inc_node_page_state(page, NR_DIRTIED) |
2427 | inc_wb_stat(wb, WB_RECLAIMABLE) |
2428 | inc_wb_stat(wb, WB_DIRTIED) |
2430 | nr_dirtied自加 |
2431 | this_cpu_inc(bdp_ratelimits) |
2433 | mem_cgroup_track_foreign_dirty(page, wb) |
名称 | 描述 |
---|---|
__set_page_dirty_nobuffers | For address_spaces which do not use buffers. Just tag the page as dirty in* the xarray.* This is also used when a single buffer is being dirtied: we want to set the* page dirty in that case, but not all the buffers. This is a "bottom-up" |
__set_page_dirty | Mark the page dirty, and set it dirty in the page cache, and mark the inode* dirty.* If warn is true, then emit a warning if the page is not uptodate and has* not been truncated.* The caller must hold lock_page_memcg(). |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |