* [PATCH] [RESEND] fuse: convert last timespec use to timespec64
@ 2018-07-13 14:35 Arnd Bergmann
2018-07-17 13:44 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2018-07-13 14:35 UTC (permalink / raw)
To: Miklos Szeredi
Cc: y2038, Arnd Bergmann, Eric W. Biederman, David Howells,
Andrew Morton, Mimi Zohar, Deepa Dinamani, linux-fsdevel,
linux-kernel
All of fuse uses 64-bit timestamps with the exception of the
fuse_change_attributes(), so let's convert this one as well.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I submitted this on June 20 but got no reply. Miklos, could
you pick this up for 4.19?
---
fs/fuse/inode.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 85b3954945af..f6f46bb5ef4b 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -209,7 +209,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr,
struct fuse_inode *fi = get_fuse_inode(inode);
bool is_wb = fc->writeback_cache;
loff_t oldsize;
- struct timespec old_mtime;
+ struct timespec64 old_mtime;
spin_lock(&fc->lock);
if ((attr_version != 0 && fi->attr_version > attr_version) ||
@@ -218,7 +218,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr,
return;
}
- old_mtime = timespec64_to_timespec(inode->i_mtime);
+ old_mtime = inode->i_mtime;
fuse_change_attributes_common(inode, attr, attr_valid);
oldsize = inode->i_size;
@@ -238,7 +238,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr,
truncate_pagecache(inode, attr->size);
inval = true;
} else if (fc->auto_inval_data) {
- struct timespec new_mtime = {
+ struct timespec64 new_mtime = {
.tv_sec = attr->mtime,
.tv_nsec = attr->mtimensec,
};
@@ -247,7 +247,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr,
* Auto inval mode also checks and invalidates if mtime
* has changed.
*/
- if (!timespec_equal(&old_mtime, &new_mtime))
+ if (!timespec64_equal(&old_mtime, &new_mtime))
inval = true;
}
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [RESEND] fuse: convert last timespec use to timespec64
2018-07-13 14:35 [PATCH] [RESEND] fuse: convert last timespec use to timespec64 Arnd Bergmann
@ 2018-07-17 13:44 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2018-07-17 13:44 UTC (permalink / raw)
To: Arnd Bergmann
Cc: y2038, Eric W. Biederman, David Howells, Andrew Morton,
Mimi Zohar, Deepa Dinamani, linux-fsdevel, linux-kernel
On Fri, Jul 13, 2018 at 4:35 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> All of fuse uses 64-bit timestamps with the exception of the
> fuse_change_attributes(), so let's convert this one as well.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> I submitted this on June 20 but got no reply. Miklos, could
> you pick this up for 4.19?
Applied, thanks.
Miklos
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-17 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13 14:35 [PATCH] [RESEND] fuse: convert last timespec use to timespec64 Arnd Bergmann
2018-07-17 13:44 ` Miklos Szeredi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).