函数逻辑报告 |
Source Code:include\linux\iversion.h |
Create Date:2022-07-29 10:37:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:de_maybe_inc_iversion - increments i_version*@inode: inode with the i_version that should be updated*@force: increment the counter even if it's not necessary?* Every time the inode is modified, the i_version field must be seen to have
函数原型:static inline bool inode_maybe_inc_iversion(struct inode *inode, bool force)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| bool | force |
| 212 | smp_mb() |
| 214 | 循环 |
| 216 | 如果非force且非cur按位与I_VERSION_QUERIED的值则返回:false |
| 220 | new等于cur按位与I_VERSION_QUERIED的反的值加I_VERSION_INCREMENT |
| 222 | old等于atomic64_cmpxchg( & i_version, cur, new) |
| 223 | 如果此条件成立可能性大(为编译器优化)(old == cur)则退出 |
| 227 | 返回:true |
| 名称 | 描述 |
|---|---|
| generic_update_time | |
| inode_inc_iversion | de_inc_iversion - forcibly increment i_version*@inode: inode that needs to be updated* Forcbily increment the i_version field. This always results in a change to* the observable value. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |