Skip to content

Commit 38109b6

Browse files
author
Al Viro
committed
efivarfs: use DCACHE_DONTCACHE instead of always_delete_dentry()
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 61a4fa3 commit 38109b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/efivarfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr)
183183
static const struct dentry_operations efivarfs_d_ops = {
184184
.d_compare = efivarfs_d_compare,
185185
.d_hash = efivarfs_d_hash,
186-
.d_delete = always_delete_dentry,
187186
};
188187

189188
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)
351350
sb->s_magic = EFIVARFS_MAGIC;
352351
sb->s_op = &efivarfs_ops;
353352
set_default_d_op(sb, &efivarfs_d_ops);
353+
sb->s_d_flags |= DCACHE_DONTCACHE;
354354
sb->s_time_gran = 1;
355355

356356
if (!efivar_supports_writes())

0 commit comments

Comments
 (0)