selinux: convert to new timestamp accessors
authorJeff Layton <jlayton@kernel.org>
Wed, 4 Oct 2023 18:53:10 +0000 (14:53 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 18 Oct 2023 12:08:31 +0000 (14:08 +0200)
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-83-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
security/selinux/selinuxfs.c

index 6fa640263216fc917635228f42536887a5b05901..6c596ae7fef94d63ea3300ced7481fa9557f8a20 100644 (file)
@@ -1198,7 +1198,7 @@ static struct inode *sel_make_inode(struct super_block *sb, umode_t mode)
 
        if (ret) {
                ret->i_mode = mode;
-               ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret);
+               simple_inode_init_ts(ret);
        }
        return ret;
 }