函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:de_set_max_iversion_raw - update i_version new value is larger*@inode: inode to set*@val: new i_version to set* Some self-managed filesystems (e.g Ceph) will only update the i_version* value if the new value is larger than the one we already have.

函数原型:static inline void inode_set_max_iversion_raw(struct inode *inode, u64 val)

返回类型:void

参数:

类型参数名称
struct inode *inode
u64val
128  cur等于de_peek_iversion_raw - grab a "raw" iversion value*@inode: inode from which i_version should be read* Grab a "raw" inode->i_version value and return it. The i_version is not* flagged or converted in any way. This is mostly used to access a self-managed
129  循环
130  如果cur大于val退出
132  old等于atomic64_cmpxchg( & i_version, cur, val)
133  如果此条件成立可能性大(为编译器优化)(old == cur)则退出
135  cur等于old