diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 20:53:11 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 14:08:31 +0200 |
commit | d32cdb32b73c4f720f15a966da84635fa2dddedb (patch) | |
tree | efc11e56c6f6ee904e358c619357a304301afd61 /security/inode.c | |
parent | selinux: convert to new timestamp accessors (diff) | |
download | linux-d32cdb32b73c4f720f15a966da84635fa2dddedb.tar.xz linux-d32cdb32b73c4f720f15a966da84635fa2dddedb.zip |
security: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions.
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185347.80880-84-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 3aa75fffa8c9..9e7cde913667 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_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_private = data; if (S_ISDIR(mode)) { inode->i_op = &simple_dir_inode_operations; |