Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jeff Layton and committed by
Christian Brauner
0593be0c 6eeb017e

+2 -2
+2 -2
fs/vboxsf/utils.c
··· 128 128 129 129 inode->i_atime = ns_to_timespec64( 130 130 info->access_time.ns_relative_to_unix_epoch); 131 - inode->i_ctime = ns_to_timespec64( 132 - info->change_time.ns_relative_to_unix_epoch); 131 + inode_set_ctime_to_ts(inode, 132 + ns_to_timespec64(info->change_time.ns_relative_to_unix_epoch)); 133 133 inode->i_mtime = ns_to_timespec64( 134 134 info->modification_time.ns_relative_to_unix_epoch); 135 135 return 0;