summaryrefslogtreecommitdiffstats
path: root/fs/efs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 15:01:03 -0400
committerChristian Brauner <brauner@kernel.org>2023-07-13 10:28:06 +0200
commita68d1f51276d37d8d43408c75eedc8590775b16a (patch)
tree2957891d241eb3ca2f3dc9c59f4ccd42ed9c227f /fs/efs
parent2fa9a97512dae779003145b693e6726ed92240e3 (diff)
downloadlinux-stable-a68d1f51276d37d8d43408c75eedc8590775b16a.tar.gz
linux-stable-a68d1f51276d37d8d43408c75eedc8590775b16a.tar.bz2
linux-stable-a68d1f51276d37d8d43408c75eedc8590775b16a.zip
efs: convert to ctime accessor functions
In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230705190309.579783-36-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/efs')
-rw-r--r--fs/efs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/efs/inode.c b/fs/efs/inode.c
index 3ba94bb005a6..3789d22ba501 100644
--- a/fs/efs/inode.c
+++ b/fs/efs/inode.c
@@ -105,8 +105,8 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
inode->i_size = be32_to_cpu(efs_inode->di_size);
inode->i_atime.tv_sec = be32_to_cpu(efs_inode->di_atime);
inode->i_mtime.tv_sec = be32_to_cpu(efs_inode->di_mtime);
- inode->i_ctime.tv_sec = be32_to_cpu(efs_inode->di_ctime);
- inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
+ inode_set_ctime(inode, be32_to_cpu(efs_inode->di_ctime), 0);
+ inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = 0;
/* this is the number of blocks in the file */
if (inode->i_size == 0) {