函数逻辑报告 |
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 and its dirty pages. Do not update the writeback list* linkage. That is left to the caller. The caller is also responsible for* setting I_SYNC flag and calling inode_sync_complete() to clear it.
函数原型:static int __writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | inode | |
struct writeback_control * | wbc |
1452 | ret等于do_writepages(mapping, wbc) |
1461 | 如果sync_mode恒等于Wait on every mapping 且非sync(2) WB_SYNC_ALL writeback 则 |
1472 | 加自旋锁 |
1475 | 如果Misc 按位与I_DIRTY_TIME则 |
1482 | dirty或等于I_DIRTY_TIME按位或I_DIRTY_TIME_EXPIRED |
1485 | 否则Misc 与等于I_DIRTY_TIME_EXPIRED的反 |
1500 | smp_mb() |
1502 | 如果Returns true if any of the pages in the mapping are marked with the tag.则Misc 或等于I_DIRTY_PAGES |
1505 | 自旋锁解锁 |
1507 | 如果dirty按位与I_DIRTY_TIME则mark_inode_dirty_sync(inode) |
1510 | 如果dirty按位与I_DIRTY_PAGES的反则 |
1516 | 返回:ret |
名称 | 描述 |
---|---|
writeback_single_inode | 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 |
writeback_sb_inodes | Write a portion of b_io inodes which belong to @sb.* Return the number of pages and/or inodes written.* NOTE! This is called with wb->list_lock held, and will* unlock and relock that for each inode it ends up doing* IO for. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |