Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int relatime_need_update(struct vfsmount *mnt, struct inode *inode, struct timespec64 now)

Type:int

Parameter:

TypeParameterName
struct vfsmount *mnt
struct inode *inode
struct timespec64now
1630  If Not (mnt_flags & MNT_RELATIME) Then Return 1
1635  If lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0 >= 0 Then Return 1
1640  If lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0 >= 0 Then Return 1
1647  If seconds - seconds >= 24 * 60 * 60 Then Return 1
1652  Return 0
Caller
NameDescribe
atime_needs_updateh_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,