linux/fs/overlayfs
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>
History 2026-01-12 14:01:32 +01:00
..
copy_up.c vfs-6.19-rc1.directory.locking 2025-12-01 16:13:46 -08:00
dir.c ovl: pass original credentials, not mounter credentials during create 2025-12-05 16:16:20 -08:00
export.c VFS: rename lookup_one_len family to lookup_noperm and remove permission check 2025-04-08 11:24:36 +02:00
file.c ovl: port ovl_copyfile() to cred guard 2025-11-19 21:58:24 +01:00
inode.c fs: refactor ->update_time handling 2026-01-12 14:01:32 +01:00
Kconfig fs: prepare for stackable filesystems backing file helpers 2023-12-23 16:35:08 +02:00
Makefile ovl: Move xattr support to new xattrs.c file 2023-10-31 00:12:59 +02:00
namei.c ovl: port ovl_lower_positive() to cred guard 2025-11-19 21:58:25 +01:00
overlayfs.h fs: refactor ->update_time handling 2026-01-12 14:01:32 +01:00
ovl_entry.h ovl: Prepare for mounting case-insensitive enabled layers 2025-09-23 12:29:35 +02:00
params.c ovl: Prepare for mounting case-insensitive enabled layers 2025-09-23 12:29:35 +02:00
params.h ovl: Prepare for mounting case-insensitive enabled layers 2025-09-23 12:29:35 +02:00
readdir.c ovl: port ovl_check_empty_dir() to cred guard 2025-11-19 21:58:23 +01:00
super.c fuse update for 6.19 2025-12-05 15:25:13 -08:00
util.c vfs-6.19-rc1.ovl 2025-12-01 16:31:21 -08:00
xattrs.c ovl: port ovl_listxattr() to cred guard 2025-11-19 21:58:24 +01:00