]> git.ipfire.org Git - thirdparty/linux.git/commit
fat: cleanup the flags for fat_truncate_time
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jan 2026 14:19:04 +0000 (15:19 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 13:01:32 +0000 (14:01 +0100)
commit1cbc822816758b2678e94800ce8eecc7b706fb84
treebc7ab5e3f0b5d7d8b90fc9e92be96dbb8f51379a
parentb8b3002fbfef005cc7c00bfb1dcc9c1d0eecba8a
fat: cleanup the flags for fat_truncate_time

Fat only has a single on-disk timestamp covering ctime and mtime.  Add
fat-specific flags that indicate which timestamp fat_truncate_time should
update to make this more clear.  This allows removing no-op
fat_truncate_time calls with the S_CTIME flag and prepares for removing
the S_* flags.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260108141934.2052404-5-hch@lst.de
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fat/dir.c
fs/fat/fat.h
fs/fat/file.c
fs/fat/inode.c
fs/fat/misc.c
fs/fat/namei_msdos.c
fs/fat/namei_vfat.c