函数逻辑报告 |
Source Code:fs\fs-writeback.c |
Create Date:2022-07-29 10:41:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Write out an inode's dirty pages. Either the caller has an active reference* on the inode or the inode has I_WILL_FREE set.* This function is designed to be called for writing back one inode which* we go e
函数原型:static int writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| struct writeback_control * | wbc |
| 1531 | ret等于0 |
| 1533 | 加自旋锁 |
| 1534 | 如果非atomic_read( & i_count)则WARN_ON(!(Misc & (I_WILL_FREE | I_FREEING))) |
| 1536 | 否则WARN_ON(Misc & I_WILL_FREE) |
| 1540 | 如果sync_mode不等于Wait on every mapping 则转到:out |
| 1558 | 如果非Misc 按位与I_DIRTY_ALL的值且sync_mode不等于Wait on every mapping 或非Returns true if any of the pages in the mapping are marked with the tag.的值则转到:out |
| 1563 | wbc_attach_and_unlock_inode(wbc, inode) |
| 1567 | wbc_detach_inode(wbc) |
| 1569 | wb等于inode_to_wb_and_lock_list(inode) |
| 1570 | 加自旋锁 |
| 1577 | 自旋锁解锁 |
| 1578 | inode_sync_complete(inode) |
| 1579 | out : |
| 1580 | 自旋锁解锁 |
| 1581 | 返回:ret |
| 名称 | 描述 |
|---|---|
| write_inode_now | write_inode_now - write an inode to disk*@inode: inode to write to disk*@sync: whether the write should be synchronous or not* This function commits an inode to disk immediately if it is dirty. This is* primarily needed by knfsd. |
| sync_inode | sync_inode - write an inode and its pages to disk.*@inode: the inode to sync*@wbc: controls the writeback mode* sync_inode() will write an inode and its pages to disk. It will also* correctly update the inode on its superblock's dirty inode lists and will |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |