函数逻辑报告

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

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

函数原型:static int relatime_need_update(struct vfsmount *mnt, struct inode *inode, struct timespec64 now)

返回类型:int

参数:

类型参数名称
struct vfsmount *mnt
struct inode *inode
struct timespec64now
1630  如果非mnt_flags按位与MNT_RELATIME的值则返回:1
1635  如果lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0大于等于0则返回:1
1640  如果lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0大于等于0则返回:1
1647  如果 seconds seconds 大于等于24乘60乘60则返回:1
1652  返回:0
调用者
名称描述
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,