mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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>
This commit is contained in:
parent
61a4fa39a3
commit
38109b6554
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user