函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:09 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add a page to the dirty page list.* It is a sad fact of life that this function is called from several places* deeply under spinlocking. It may not sleep.* If the page has buffers, the uptodate buffers are set dirty, to preserve
函数原型:int __set_page_dirty_buffers(struct page *page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page |
659 | mapping等于page_mapping(page) |
661 | 如果此条件成立可能性小(为编译器优化)(!mapping)则返回:非TestSetPageDirty(page) |
664 | 加自旋锁 |
665 | 如果page_has_buffers(page)则 |
669 | 循环 |
670 | set_buffer_dirty(bh) |
679 | newly_dirty等于非TestSetPageDirty(page) |
680 | 自旋锁解锁 |
687 | 如果newly_dirty则__mark_inode_dirty - internal function*@inode: inode to mark*@flags: what kind of dirty (i |
690 | 返回:newly_dirty |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |