summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-12-07 21:51:31 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2019-12-08 19:10:57 -0500
commitf0f3588f7a95bb8e02b0f8f5138efb7064665730 (patch)
treee06ed3509f20b631092278e2f549ff93b447f3a4 /fs
parent23b424d9c36e6205d38130f9d96fa755e51e8817 (diff)
downloadlinux-stable-f0f3588f7a95bb8e02b0f8f5138efb7064665730.tar.gz
linux-stable-f0f3588f7a95bb8e02b0f8f5138efb7064665730.tar.bz2
linux-stable-f0f3588f7a95bb8e02b0f8f5138efb7064665730.zip
kernfs: don't bother with timestamp truncation
kernfs users are not going to have limited range or granularity anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/kernfs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c
index eac277c63d42..d0f7a5abd9a9 100644
--- a/fs/kernfs/inode.c
+++ b/fs/kernfs/inode.c
@@ -160,9 +160,9 @@ static inline void set_inode_attr(struct inode *inode,
{
inode->i_uid = attrs->ia_uid;
inode->i_gid = attrs->ia_gid;
- inode->i_atime = timestamp_truncate(attrs->ia_atime, inode);
- inode->i_mtime = timestamp_truncate(attrs->ia_mtime, inode);
- inode->i_ctime = timestamp_truncate(attrs->ia_ctime, inode);
+ inode->i_atime = attrs->ia_atime;
+ inode->i_mtime = attrs->ia_mtime;
+ inode->i_ctime = attrs->ia_ctime;
}
static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode)