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:h_atime - update the access time*@path: the &struct path to update*@inode: inode to update* Update the accessed time on an inode and mark it for writeback.* This function automatically handles read only file systems and media,

Proto:bool atime_needs_update(const struct path *path, struct inode *inode)

Type:bool

Parameter:

TypeParameterName
const struct path *path
struct inode *inode
1704  mnt = mnt
1707  If i_flags & Do not update access times Then Return false
1713  If HAS_UNMAPPED_ID(inode) Then Return false
1716  If IS_NOATIME(inode) Then Return false
1718  If s_flags & Do not update directory access times && S_ISDIR(i_mode) Then Return false
1721  If mnt_flags & MNT_NOATIME Then Return false
1723  If mnt_flags & MNT_NODIRATIME && S_ISDIR(i_mode) Then Return false
1726  now = rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
1728  If Not With relative atime, only update atime if the previous atime is* earlier than either the ctime or mtime or if at least a day has* passed since the last atime update. Then Return false
1731  If timespec64_equal( & i_atime, & now) Then Return false
1734  Return true
Caller
NameDescribe
touch_atime