From: Al Viro Date: Mon, 24 Feb 2025 03:20:30 +0000 (-0500) Subject: efivarfs: use DCACHE_DONTCACHE instead of always_delete_dentry() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38109b6554276a907ef8a047ff4d69eaadc31355;p=thirdparty%2Fkernel%2Fstable.git efivarfs: use DCACHE_DONTCACHE instead of always_delete_dentry() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c index f76d8dfa646bb..23ff4e8736515 100644 --- a/fs/efivarfs/super.c +++ b/fs/efivarfs/super.c @@ -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())