Skip to content

Commit e359147

Browse files
jtlaytonbrauner
authored andcommitted
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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent f74207d commit e359147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/fs_stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static inline void fsstack_copy_attr_times(struct inode *dest,
2424
{
2525
dest->i_atime = src->i_atime;
2626
dest->i_mtime = src->i_mtime;
27-
dest->i_ctime = src->i_ctime;
27+
inode_set_ctime_to_ts(dest, inode_get_ctime(src));
2828
}
2929

3030
#endif /* _LINUX_FS_STACK_H */

0 commit comments

Comments
 (0)