Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:59
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:generic_update_time

Proto:int generic_update_time(struct inode *inode, struct timespec64 *time, int flags)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct timespec64 *time
intflags
1657  iflags = I_DIRTY_TIME
1658  bool dirty = false
1660  If flags & S_ATIME Then i_atime = time
1662  If flags & S_VERSION Then dirty = 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  If flags & S_CTIME Then i_ctime = time
1666  If flags & S_MTIME Then i_mtime = time
1668  If flags & ( S_ATIME | S_CTIME | S_MTIME) && Not (s_flags & Update the on-disk [acm]times lazily ) Then dirty = true
1672  If dirty Then iflags |= Inode is dirty
1674  __mark_inode_dirty(inode, iflags)
1675  Return 0