summaryrefslogtreecommitdiffstats
path: root/fs/pstore/inode.c
diff options
context:
space:
mode:
authorKees Cook2018-05-15 00:50:52 +0200
committerDeepa Dinamani2018-06-06 01:57:31 +0200
commit7aaa822ed060719bd4ea012609883b6bc6950508 (patch)
tree222a4c1d6da343c041f790c0263e9b73296e798c /fs/pstore/inode.c
parentudf: Simplify calls to udf_disk_stamp_to_time (diff)
downloadkernel-qcow2-linux-7aaa822ed060719bd4ea012609883b6bc6950508.tar.gz
kernel-qcow2-linux-7aaa822ed060719bd4ea012609883b6bc6950508.tar.xz
kernel-qcow2-linux-7aaa822ed060719bd4ea012609883b6bc6950508.zip
pstore: Convert internal records to timespec64
This prepares pstore for converting the VFS layer to timespec64. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Diffstat (limited to 'fs/pstore/inode.c')
-rw-r--r--fs/pstore/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 5fcb845b9fec..75afe5eb0574 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -392,7 +392,8 @@ 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 =
+ timespec64_to_timespec(record->time);
d_add(dentry, inode);