[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGXu5jLFHSE12La25QEvZawdBm84cLavtTD5LAA6MqeqBmbYuw@mail.gmail.com>
Date: Fri, 11 May 2018 23:44:43 -0700
From: Kees Cook <keescook@...omium.org>
To: Deepa Dinamani <deepa.kernel@...il.com>
Cc: Al Viro <viro@...iv.linux.org.uk>,
Thomas Gleixner <tglx@...utronix.de>,
Arnd Bergmann <arnd@...db.de>,
LKML <linux-kernel@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
y2038 Mailman List <y2038@...ts.linaro.org>,
anton@...era.com, Felipe Balbi <balbi@...nel.org>,
"J. Bruce Fields" <bfields@...ldses.org>,
"Darrick J. Wong" <darrick.wong@...cle.com>,
David Howells <dhowells@...hat.com>,
David Sterba <dsterba@...e.com>,
David Woodhouse <dwmw2@...radead.org>,
Christoph Hellwig <hch@....de>, hirofumi@...l.parknet.co.jp,
hubcap@...ibond.com, Jan Kara <jack@...e.com>,
Jaegeuk Kim <jaegeuk@...nel.org>, jaharkes@...cmu.edu,
Jiri Slaby <jslaby@...e.com>, mark@...heh.com,
Miklos Szeredi <miklos@...redi.hu>,
Nicolas Pitre <nico@...aro.org>,
reiserfs-devel@...r.kernel.org,
Richard Weinberger <richard@....at>,
Sage Weil <sage@...hat.com>, Steve French <sfrench@...ba.org>,
Steven Whitehouse <swhiteho@...hat.com>,
Tejun Heo <tj@...nel.org>,
Trond Myklebust <trond.myklebust@...marydata.com>,
"Ted Ts'o" <tytso@....edu>
Subject: Re: [PATCH 6/6] vfs: change inode times to use struct timespec64
On Fri, May 11, 2018 at 9:59 PM, Deepa Dinamani <deepa.kernel@...il.com> wrote:
> diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
> index 5fcb845b9fec..fb681d302bb3 100644
> --- a/fs/pstore/inode.c
> +++ b/fs/pstore/inode.c
> @@ -392,7 +392,7 @@ int pstore_mkfile(struct dentry *root, struct pstore_record *record)
> inode->i_private = private;
>
> if (record->time.tv_sec)
> - inode->i_mtime = inode->i_ctime = record->time;
> + inode->i_mtime = inode->i_ctime = timespec_to_timespec64(record->time);
>
> d_add(dentry, inode);
I'm fine to just convert pstore internally to timespec64 right now. Is
it correct to say that I should use timespec64_to_timespec() here
until this flag day patch? And I'd need to do this as well, yes?
fs/pstore/platform.c: record->time =
ns_to_timespec64(ktime_get_real_fast_ns());
Thanks!
-Kees
--
Kees Cook
Pixel Security
Powered by blists - more mailing lists