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

linux: 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-82-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jeff Layton and committed by
Christian Brauner
e359147f f74207d8

+1 -1
+1 -1
include/linux/fs_stack.h
··· 24 24 { 25 25 dest->i_atime = src->i_atime; 26 26 dest->i_mtime = src->i_mtime; 27 - dest->i_ctime = src->i_ctime; 27 + inode_set_ctime_to_ts(dest, inode_get_ctime(src)); 28 28 } 29 29 30 30 #endif /* _LINUX_FS_STACK_H */