diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:01:09 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-24 10:29:59 +0200 |
commit | ea60635ec1f456b4cf8ecf1ead2e203c9226e0d6 (patch) | |
tree | fbad7ab7eeaad7a22e53530c4d12340017abd9a4 /fs/fat/misc.c | |
parent | c62ebd3501cc2c78d4cc28a9b4cbdb17d199c6d6 (diff) | |
download | linux-ea60635ec1f456b4cf8ecf1ead2e203c9226e0d6.tar.gz linux-ea60635ec1f456b4cf8ecf1ead2e203c9226e0d6.tar.bz2 linux-ea60635ec1f456b4cf8ecf1ead2e203c9226e0d6.zip |
fat: 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 <jlayton@kernel.org>
Message-Id: <20230705190309.579783-42-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/fat/misc.c')
-rw-r--r-- | fs/fat/misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fat/misc.c b/fs/fat/misc.c index 7e5d6ae305f2..67006ea08db6 100644 --- a/fs/fat/misc.c +++ b/fs/fat/misc.c @@ -332,7 +332,8 @@ int fat_truncate_time(struct inode *inode, struct timespec64 *now, int flags) * but ctime updates are ignored. */ if (flags & S_MTIME) - inode->i_mtime = inode->i_ctime = fat_truncate_mtime(sbi, now); + inode->i_mtime = inode_set_ctime_to_ts(inode, + fat_truncate_mtime(sbi, now)); return 0; } |