From: Jeff Layton Date: Wed, 5 Jul 2023 19:01:15 +0000 (-0400) Subject: hostfs: convert to ctime accessor functions X-Git-Tag: v6.6.17~4156^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66e79d8934ec77bc490d00533f53e36d029d30e1;p=platform%2Fkernel%2Flinux-rpi.git hostfs: 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 Reviewed-by: Jan Kara Message-Id: <20230705190309.579783-48-jlayton@kernel.org> Signed-off-by: Christian Brauner --- diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 46387090eb76..dc5a5cea5fae 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -517,8 +517,7 @@ static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st) (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec }; ino->i_mtime = (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec }; - ino->i_ctime = - (struct timespec64){ st->ctime.tv_sec, st->ctime.tv_nsec }; + inode_set_ctime(ino, st->ctime.tv_sec, st->ctime.tv_nsec); ino->i_size = st->size; ino->i_blocks = st->blocks; return 0;