OSDN Git Service

fs: export an inode_update_time helper
authorJosef Bacik <josef@toxicpanda.com>
Thu, 14 Oct 2021 17:11:00 +0000 (13:11 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:08 +0000 (19:08 +0200)
commite60feb445fce9e51c1558a6aa7faf9dd5ded533b
tree8e294e906c689646e276f52c0c3acbcbf5e6194c
parent24bcb45429d924711576856b26c99ad3375b1e12
fs: export an inode_update_time helper

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