fs: export an inode_update_time helper
authorJosef Bacik <josef@toxicpanda.com>
Thu, 14 Oct 2021 17:11:00 +0000 (13:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 09:39:22 +0000 (10:39 +0100)
commit9febc9d8d2b4f367c364ccf3b4a4a2335291cff2
treeff3944bb70faecdcc553d9f91a0280c3001e4c12
parentcade5d7a28037d8f36dab275163575613dd42af3
fs: export an inode_update_time helper

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>
fs/inode.c
include/linux/fs.h