Skip to content
Commit f9aa2857 authored by Jeff Layton's avatar Jeff Layton Committed by Greg Kroah-Hartman
Browse files

fs: add ctime accessors infrastructure

[ Upstream commit 9b6304c1

 ]

struct timespec64 has unused bits in the tv_nsec field that can be used
for other purposes. In future patches, we're going to change how the
inode->i_ctime is accessed in certain inodes in order to make use of
them. In order to do that safely though, we'll need to eradicate raw
accesses of the inode->i_ctime field from the kernel.

Add new accessor functions for the ctime that we use to replace them.

Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Message-Id: <20230705185812.579118-2-jlayton@kernel.org>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Stable-dep-of: 5923d668

 ("smb3: fix caching of ctime on setxattr")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8d4237a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment