diff options
| -rw-r--r-- | fs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/inode.c b/fs/inode.c index e9d97add2b36..f8ed7144c3dd 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
| @@ -1601,7 +1601,7 @@ EXPORT_SYMBOL(bmap); | |||
| 1601 | * passed since the last atime update. | 1601 | * passed since the last atime update. |
| 1602 | */ | 1602 | */ |
| 1603 | static int relatime_need_update(struct vfsmount *mnt, struct inode *inode, | 1603 | static int relatime_need_update(struct vfsmount *mnt, struct inode *inode, |
| 1604 | struct timespec now) | 1604 | struct timespec64 now) |
| 1605 | { | 1605 | { |
| 1606 | 1606 | ||
| 1607 | if (!(mnt->mnt_flags & MNT_RELATIME)) | 1607 | if (!(mnt->mnt_flags & MNT_RELATIME)) |
| @@ -1702,7 +1702,7 @@ bool atime_needs_update(const struct path *path, struct inode *inode) | |||
| 1702 | 1702 | ||
| 1703 | now = current_time(inode); | 1703 | now = current_time(inode); |
| 1704 | 1704 | ||
| 1705 | if (!relatime_need_update(mnt, inode, timespec64_to_timespec(now))) | 1705 | if (!relatime_need_update(mnt, inode, now)) |
| 1706 | return false; | 1706 | return false; |
| 1707 | 1707 | ||
| 1708 | if (timespec64_equal(&inode->i_atime, &now)) | 1708 | if (timespec64_equal(&inode->i_atime, &now)) |
