mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs updates from Al Viro: "Assorted stuff, with no common topic whatsoever..." * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: libfs: document simple_get_link() Documentation/filesystems/Locking: fix ->get_link() prototype Documentation/filesystems/vfs.txt: document how ->i_link works Documentation/filesystems/vfs.txt: remove bogus "Last updated" date fs: use timespec64 in relatime_need_update fs/block_dev.c: remove unused include
This commit is contained in:
commit
149e703cb8
5 changed files with 23 additions and 6 deletions
|
@ -1613,7 +1613,7 @@ EXPORT_SYMBOL(bmap);
|
|||
* passed since the last atime update.
|
||||
*/
|
||||
static int relatime_need_update(struct vfsmount *mnt, struct inode *inode,
|
||||
struct timespec now)
|
||||
struct timespec64 now)
|
||||
{
|
||||
|
||||
if (!(mnt->mnt_flags & MNT_RELATIME))
|
||||
|
@ -1714,7 +1714,7 @@ bool atime_needs_update(const struct path *path, struct inode *inode)
|
|||
|
||||
now = current_time(inode);
|
||||
|
||||
if (!relatime_need_update(mnt, inode, timespec64_to_timespec(now)))
|
||||
if (!relatime_need_update(mnt, inode, now))
|
||||
return false;
|
||||
|
||||
if (timespec64_equal(&inode->i_atime, &now))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue