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>
This commit is contained in:
committed by
Christian Brauner
parent
f74207d84d
commit
e359147f01
@@ -24,7 +24,7 @@ static inline void fsstack_copy_attr_times(struct inode *dest,
|
||||
{
|
||||
dest->i_atime = src->i_atime;
|
||||
dest->i_mtime = src->i_mtime;
|
||||
dest->i_ctime = src->i_ctime;
|
||||
inode_set_ctime_to_ts(dest, inode_get_ctime(src));
|
||||
}
|
||||
|
||||
#endif /* _LINUX_FS_STACK_H */
|
||||
|
||||
Reference in New Issue
Block a user