summaryrefslogtreecommitdiff
path: root/fs/stack.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-10-04 14:52:38 -0400
committerChristian Brauner <brauner@kernel.org>2023-10-18 13:26:15 +0200
commit16a9496523a473866a0b794ee6d6c5b74fe67d40 (patch)
tree47f5ee09f0aec41da6a0846be98d4cf038fa57f5 /fs/stack.c
parent077c212f0344ae4198b2b51af128a94b614ccdf4 (diff)
downloadlwn-16a9496523a473866a0b794ee6d6c5b74fe67d40.tar.gz
lwn-16a9496523a473866a0b794ee6d6c5b74fe67d40.zip
fs: convert core infrastructure to new timestamp accessors
Convert the core vfs code to use the new timestamp accessor functions. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20231004185239.80830-2-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/stack.c')
-rw-r--r--fs/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/stack.c b/fs/stack.c
index b5e01bdb5f5f..f18920119944 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -66,8 +66,8 @@ void fsstack_copy_attr_all(struct inode *dest, const struct inode *src)
dest->i_uid = src->i_uid;
dest->i_gid = src->i_gid;
dest->i_rdev = src->i_rdev;
- dest->i_atime = src->i_atime;
- dest->i_mtime = src->i_mtime;
+ inode_set_atime_to_ts(dest, inode_get_atime(src));
+ inode_set_mtime_to_ts(dest, inode_get_mtime(src));
inode_set_ctime_to_ts(dest, inode_get_ctime(src));
dest->i_blkbits = src->i_blkbits;
dest->i_flags = src->i_flags;