summaryrefslogtreecommitdiff
path: root/fs/stack.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 15:00:50 -0400
committerChristian Brauner <brauner@kernel.org>2023-07-13 10:28:04 +0200
commit2276e5ba8567f683c49a36ba885d0fe6abe2b45e (patch)
treef7e72f653deb4fefae34686d57393702e9c979b1 /fs/stack.c
parentb9170a28839a59fc1314a194712c06109e0ca0ab (diff)
downloadlwn-2276e5ba8567f683c49a36ba885d0fe6abe2b45e.tar.gz
lwn-2276e5ba8567f683c49a36ba885d0fe6abe2b45e.zip
fs: 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. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jeff Layton <jlayton@kernel.org> Message-Id: <20230705190309.579783-23-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/stack.c')
-rw-r--r--fs/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/stack.c b/fs/stack.c
index c9830924eb12..b5e01bdb5f5f 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -68,7 +68,7 @@ void fsstack_copy_attr_all(struct inode *dest, const struct inode *src)
dest->i_rdev = src->i_rdev;
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));
dest->i_blkbits = src->i_blkbits;
dest->i_flags = src->i_flags;
set_nlink(dest, src->i_nlink);