linux/fs/fat
Christoph Hellwig 761475268f
fs: refactor ->update_time handling
Pass the type of update (atime vs c/mtime plus version) as an enum
instead of a set of flags that caused all kinds of confusion.
Because inode_update_timestamps now can't return a modified version
of those flags, return the I_DIRTY_* flags needed to persist the
update, which is what the main caller in generic_update_time wants
anyway, and which is suitable for the other callers that only want
to know if an update happened.

The whole update_time path keeps the flags argument, which will be used
to support non-blocking updates soon even if it is unused, and (the
slightly renamed) inode_update_time also gains the possibility to return
a negative errno to support this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260108141934.2052404-6-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-01-12 14:01:32 +01:00
..
.kunitconfig fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
cache.c fs/fat: remove unnecessary wrapper fat_max_cache() 2025-12-10 16:07:42 -08:00
dir.c fat: cleanup the flags for fat_truncate_time 2026-01-12 14:01:32 +01:00
fat.h fs: refactor ->update_time handling 2026-01-12 14:01:32 +01:00
fat_test.c fs: fat: add missing MODULE_DESCRIPTION() macros 2024-05-28 12:06:55 +02:00
fatent.c fs: fat: Prevent fsfuzzer from dominating the console 2025-07-09 22:57:55 -07:00
file.c fat: cleanup the flags for fat_truncate_time 2026-01-12 14:01:32 +01:00
inode.c fat: cleanup the flags for fat_truncate_time 2026-01-12 14:01:32 +01:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
misc.c fs: refactor ->update_time handling 2026-01-12 14:01:32 +01:00
namei_msdos.c fat: cleanup the flags for fat_truncate_time 2026-01-12 14:01:32 +01:00
namei_vfat.c fat: cleanup the flags for fat_truncate_time 2026-01-12 14:01:32 +01:00
nfs.c fat: fix uninitialized field in nostale filehandles 2024-02-22 15:38:55 -08:00