函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:07
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:generic_update_time

函数原型:int generic_update_time(struct inode *inode, struct timespec64 *time, int flags)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct timespec64 *time
intflags
1657  iflags等于I_DIRTY_TIME
1658  bool dirty = false
1660  如果flags按位与S_ATIMEi_atime等于time
1662  如果flags按位与S_VERSIONdirty等于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
1664  如果flags按位与S_CTIMEi_ctime等于time
1666  如果flags按位与S_MTIMEi_mtime等于time
1668  如果flags按位与S_ATIME按位或S_CTIME按位或S_MTIME的值且非s_flags按位与Update the on-disk [acm]times lazily 的值则dirty = true
1672  如果dirtyiflags或等于Inode state bits. Protected by inode->i_lock* Three bits determine the dirty state of the inode, I_DIRTY_SYNC,* I_DIRTY_DATASYNC and I_DIRTY_PAGES.* Four bits define the lifetime of an inode. Initially, inodes are I_NEW,* until that flag is cleared
1674  __mark_inode_dirty(inode, iflags)
1675  返回:0