]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
fs: export an inode_update_time helper
authorJosef Bacik <josef@toxicpanda.com>
Thu, 14 Oct 2021 17:11:00 +0000 (13:11 -0400)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:55 +0000 (09:48 +0100)
commit6d8a0c254607cc5881eb8f13da236e2bbe41b349
tree8ab573bbfa73ab273fa785a087108b3dfecfa8e6
parenta3caf78914f0e39266d9a7f0beed3ea74e100da5
fs: export an inode_update_time helper

BugLink: https://bugs.launchpad.net/bugs/1952579
commit e60feb445fce9e51c1558a6aa7faf9dd5ded533b upstream.

If you already have an inode and need to update the time on the inode
there is no way to do this properly.  Export this helper to allow file
systems to update time on the inode so the appropriate handler is
called, either ->update_time or generic_update_time.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/inode.c
include/linux/fs.h