aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-08-10 09:12:05 -0400
committerChristian Brauner <brauner@kernel.org>2023-08-11 09:04:56 +0200
commit6f4aaee3faa84f00d38bfaba88a9f75d8c78e7e0 (patch)
treecea9d709077d4e119fee3f055212a37e97946e86 /fs/fat
parent93e6c30435443bad38414b745845fb1d3fa6963e (diff)
downloadlinux-6f4aaee3faa84f00d38bfaba88a9f75d8c78e7e0.tar.gz
fat: make fat_update_time get its own timestamp
In later patches, we're going to drop the "now" parameter from the update_time operation. Fix fat_update_time to fetch its own timestamp. It turns out that this is easily done by just passing a NULL timestamp pointer to fat_truncate_time. Signed-off-by: Jeff Layton <jlayton@kernel.org> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Frank Sorenson <sorenson@redhat.com> Message-Id: <20230810-ctime-fat-v1-2-327598fd1de8@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/misc.c b/fs/fat/misc.c
index 620436777f989..e783792c2fc31 100644
--- a/fs/fat/misc.c
+++ b/fs/fat/misc.c
@@ -347,7 +347,7 @@ int fat_update_time(struct inode *inode, struct timespec64 *now, int flags)
return 0;
if (flags & (S_ATIME | S_CTIME | S_MTIME)) {
- fat_truncate_time(inode, now, flags);
+ fat_truncate_time(inode, NULL, flags);
if (inode->i_sb->s_flags & SB_LAZYTIME)
dirty_flags |= I_DIRTY_TIME;
else