]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
efivarfs: use DCACHE_DONTCACHE instead of always_delete_dentry()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Feb 2025 03:20:30 +0000 (22:20 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jun 2025 17:41:05 +0000 (13:41 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/efivarfs/super.c

index f76d8dfa646bbb5b1417b90476bb4039f86c0fc5..23ff4e87365157032faa25a51e65c410c34b4047 100644 (file)
@@ -183,7 +183,6 @@ static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr)
 static const struct dentry_operations efivarfs_d_ops = {
        .d_compare = efivarfs_d_compare,
        .d_hash = efivarfs_d_hash,
-       .d_delete = always_delete_dentry,
 };
 
 static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name)
@@ -351,6 +350,7 @@ static int efivarfs_fill_super(struct super_block *sb, struct fs_context *fc)
        sb->s_magic             = EFIVARFS_MAGIC;
        sb->s_op                = &efivarfs_ops;
        set_default_d_op(sb, &efivarfs_d_ops);
+       sb->s_d_flags |= DCACHE_DONTCACHE;
        sb->s_time_gran         = 1;
 
        if (!efivar_supports_writes())