befs: convert to ctime accessor functions
authorJeff Layton <jlayton@kernel.org>
Wed, 5 Jul 2023 19:00:52 +0000 (15:00 -0400)
committerChristian Brauner <brauner@kernel.org>
Thu, 13 Jul 2023 08:28:04 +0000 (10:28 +0200)
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-25-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/befs/linuxvfs.c

index eee9237..9a16a51 100644 (file)
@@ -363,7 +363,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
        inode->i_mtime.tv_sec =
            fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16;
        inode->i_mtime.tv_nsec = 0;   /* lower 16 bits are not a time */
-       inode->i_ctime = inode->i_mtime;
+       inode_set_ctime_to_ts(inode, inode->i_mtime);
        inode->i_atime = inode->i_mtime;
 
        befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num);