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

linux: convert to new timestamp accessors

Convert to using the new inode timestamp accessor functions.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185347.80880-77-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jeff Layton and committed by
Christian Brauner
1f693269 8df379a3

+3 -3
+3 -3
include/linux/fs_stack.h
··· 16 16 static inline void fsstack_copy_attr_atime(struct inode *dest, 17 17 const struct inode *src) 18 18 { 19 - dest->i_atime = src->i_atime; 19 + inode_set_atime_to_ts(dest, inode_get_atime(src)); 20 20 } 21 21 22 22 static inline void fsstack_copy_attr_times(struct inode *dest, 23 23 const struct inode *src) 24 24 { 25 - dest->i_atime = src->i_atime; 26 - dest->i_mtime = src->i_mtime; 25 + inode_set_atime_to_ts(dest, inode_get_atime(src)); 26 + inode_set_mtime_to_ts(dest, inode_get_mtime(src)); 27 27 inode_set_ctime_to_ts(dest, inode_get_ctime(src)); 28 28 } 29 29