Centos-kernel-stream-9/fs/orangefs
Scott Mayhew f67a532577 fs: drop the timespec64 arg from generic_update_time
JIRA: https://issues.redhat.com/browse/RHEL-59704

commit 541d4c798a598854fcce7326d947cbcbd35701d6
Author: Jeff Layton <jlayton@kernel.org>
Date:   Mon Aug 7 15:38:34 2023 -0400

    fs: drop the timespec64 arg from generic_update_time

    In future patches we're going to change how the ctime is updated
    to keep track of when it has been queried. The way that the update_time
    operation works (and a lot of its callers) make this difficult, since
    they grab a timestamp early and then pass it down to eventually be
    copied into the inode.

    All of the existing update_time callers pass in the result of
    current_time() in some fashion. Drop the "time" parameter from
    generic_update_time, and rework it to fetch its own timestamp.

    This change means that an update_time could fetch a different timestamp
    than was seen in inode_needs_update_time. update_time is only ever
    called with one of two flag combinations: Either S_ATIME is set, or
    S_MTIME|S_CTIME|S_VERSION are set.

    With this change we now treat the flags argument as an indicator that
    some value needed to be updated when last checked, rather than an
    indication to update specific timestamps.

    Rework the logic for updating the timestamps and put it in a new
    inode_update_timestamps helper that other update_time routines can use.
    S_ATIME is as treated as we always have, but if any of the other three
    are set, then we attempt to update all three.

    Also, some callers of generic_update_time need to know what timestamps
    were actually updated. Change it to return an S_* flag mask to indicate
    that and rework the callers to expect it.

    Signed-off-by: Jeff Layton <jlayton@kernel.org>
    Reviewed-by: Jan Kara <jack@suse.cz>
    Message-Id: <20230807-mgctime-v7-3-d1dec143a704@kernel.org>
    Signed-off-by: Christian Brauner <brauner@kernel.org>

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
2024-10-25 12:35:45 -04:00
..
Kconfig
Makefile
acl.c fs: port acl to mnt_idmap 2024-10-16 10:45:23 +08:00
dcache.c
devorangefs-req.c
dir.c
downcall.h
file.c mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
inode.c fs: drop the timespec64 arg from generic_update_time 2024-10-25 12:35:45 -04:00
namei.c fs: port ->rename() to pass mnt_idmap 2024-10-16 10:45:07 +08:00
orangefs-bufmap.c
orangefs-bufmap.h
orangefs-cache.c
orangefs-debug.h
orangefs-debugfs.c
orangefs-debugfs.h
orangefs-dev-proto.h
orangefs-kernel.h fs: port ->permission() to pass mnt_idmap 2024-10-16 10:45:20 +08:00
orangefs-mod.c
orangefs-sysfs.c
orangefs-sysfs.h
orangefs-utils.c orangefs: fix mode handling 2024-10-15 16:12:22 +08:00
protocol.h
super.c
symlink.c
upcall.h
waitqueue.c
xattr.c fs: port xattr to mnt_idmap 2024-10-16 10:45:21 +08:00