fs: new helper: simple_rename_timestamp
authorJeff Layton <jlayton@kernel.org>
Wed, 5 Jul 2023 18:58:11 +0000 (14:58 -0400)
committerChristian Brauner <brauner@kernel.org>
Mon, 10 Jul 2023 08:08:09 +0000 (10:08 +0200)
commit0c4767923ed6964d279309744cdb248890e95ec2
tree5e4a2e5c52e83367ef45b53fe28aa1db9fd0c722
parent9b6304c1d53745c300b86f202d0dcff395e2d2db
fs: new helper: simple_rename_timestamp

A rename potentially involves updating 4 different inode timestamps. Add
a function that handles the details sanely, and convert the libfs.c
callers to use it.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230705185812.579118-3-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/libfs.c
include/linux/fs.h