函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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,

函数原型:bool atime_needs_update(const struct path *path, struct inode *inode)

返回类型:bool

参数:

类型参数名称
const struct path *path
struct inode *inode
1704  mnt等于mnt
1707  如果i_flags按位与Do not update access times 则返回:false
1713  如果HAS_UNMAPPED_ID(inode)则返回:false
1716  如果IS_NOATIME(inode)则返回:false
1718  如果s_flags按位与Do not update directory access times S_ISDIR(i_mode)则返回:false
1721  如果mnt_flags按位与MNT_NOATIME则返回:false
1723  如果mnt_flags按位与MNT_NODIRATIMES_ISDIR(i_mode)则返回: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  如果非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.则返回:false
1731  如果timespec64_equal( & i_atime, & now)则返回:false
1734  返回:true
调用者
名称描述
touch_atime