summaryrefslogtreecommitdiffstats
path: root/fs/vboxsf
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 15:01:46 -0400
committerChristian Brauner <brauner@kernel.org>2023-07-24 10:30:06 +0200
commit0593be0c8e60c05cc130db2f98281b0fe3379083 (patch)
treec5516803be7e73e2f11a1af43edc40a9ec0db336 /fs/vboxsf
parent6eeb017e4f7f3669c1846d76dd247726f85354cc (diff)
downloadlinux-0593be0c8e60c05cc130db2f98281b0fe3379083.tar.gz
linux-0593be0c8e60c05cc130db2f98281b0fe3379083.tar.bz2
linux-0593be0c8e60c05cc130db2f98281b0fe3379083.zip
vboxsf: 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-79-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/vboxsf')
-rw-r--r--fs/vboxsf/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c
index dd0ae1188e87..576b91d571c5 100644
--- a/fs/vboxsf/utils.c
+++ b/fs/vboxsf/utils.c
@@ -128,8 +128,8 @@ int vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode,
inode->i_atime = ns_to_timespec64(
info->access_time.ns_relative_to_unix_epoch);
- inode->i_ctime = ns_to_timespec64(
- info->change_time.ns_relative_to_unix_epoch);
+ inode_set_ctime_to_ts(inode,
+ ns_to_timespec64(info->change_time.ns_relative_to_unix_epoch));
inode->i_mtime = ns_to_timespec64(
info->modification_time.ns_relative_to_unix_epoch);
return 0;