diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 21:01:55 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-24 10:30:08 +0200 |
commit | 428c33f2851e226673dc04f970cbcf5829100b3f (patch) | |
tree | 4d0f9860dc5b181ecd569246188ce42dcafa7d8b /security/inode.c | |
parent | apparmor: convert to ctime accessor functions (diff) | |
download | linux-428c33f2851e226673dc04f970cbcf5829100b3f.tar.xz linux-428c33f2851e226673dc04f970cbcf5829100b3f.zip |
security: convert to ctime accessor functions
In later patches, we're going to change how the inode's ctime field is
used. Switch to using accessor functions instead of raw accesses of
inode->i_ctime.
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230705190309.579783-88-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'security/inode.c')
-rw-r--r-- | security/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/inode.c b/security/inode.c index 6c326939750d..3aa75fffa8c9 100644 --- a/security/inode.c +++ b/security/inode.c @@ -145,7 +145,7 @@ static struct dentry *securityfs_create_dentry(const char *name, umode_t mode, inode->i_ino = get_next_ino(); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); inode->i_private = data; if (S_ISDIR(mode)) { inode->i_op = &simple_dir_inode_operations; |