From: Jeff Layton Date: Wed, 5 Jul 2023 19:00:58 +0000 (-0400) Subject: cramfs: convert to ctime accessor functions X-Git-Tag: v6.6.17~4156^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e018769388acacf3a04eabffbd71b66cc11052f;p=platform%2Fkernel%2Flinux-rpi.git cramfs: 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. Acked-by: Nicolas Pitre Signed-off-by: Jeff Layton Reviewed-by: Jan Kara Message-Id: <20230705190309.579783-31-jlayton@kernel.org> Signed-off-by: Christian Brauner --- diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 27c6597..e755b22 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -133,7 +133,8 @@ static struct inode *get_cramfs_inode(struct super_block *sb, } /* Struct copy intentional */ - inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime; + inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode, + zerotime); /* inode->i_nlink is left 1 - arguably wrong for directories, but it's the best we can do without reading the directory contents. 1 yields the right result in GNU find, even