1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 08:35:19 -05:00

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>
This commit is contained in:
Jeff Layton 2023-07-05 15:01:46 -04:00 committed by Christian Brauner
parent 6eeb017e4f
commit 0593be0c8e

View file

@ -128,8 +128,8 @@ int vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode,
inode->i_atime = ns_to_timespec64( inode->i_atime = ns_to_timespec64(
info->access_time.ns_relative_to_unix_epoch); info->access_time.ns_relative_to_unix_epoch);
inode->i_ctime = ns_to_timespec64( inode_set_ctime_to_ts(inode,
info->change_time.ns_relative_to_unix_epoch); ns_to_timespec64(info->change_time.ns_relative_to_unix_epoch));
inode->i_mtime = ns_to_timespec64( inode->i_mtime = ns_to_timespec64(
info->modification_time.ns_relative_to_unix_epoch); info->modification_time.ns_relative_to_unix_epoch);
return 0; return 0;