]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: refactor file_update_time_flags
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jan 2026 14:19:09 +0000 (15:19 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 13:01:33 +0000 (14:01 +0100)
commit2d72003ba2440dfd43d8a0ebe2a9a36d971771e5
tree24453efd41a5b103e278494966f863500526374e
parent85c871a02b0305f568d5aba6144fc6b2c96bd87d
fs: refactor file_update_time_flags

Split all the inode timestamp flags into a helper.  This not only
makes the code a bit more readable, but also optimizes away the
further checks as soon as know we need an update.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260108141934.2052404-10-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/inode.c