aboutsummaryrefslogtreecommitdiffstats
path: root/fs/efivarfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/efivarfs/inode.c')
-rw-r--r--fs/efivarfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/efivarfs/inode.c b/fs/efivarfs/inode.c
index 07ab49745e31..3381b9da9ee6 100644
--- a/fs/efivarfs/inode.c
+++ b/fs/efivarfs/inode.c
@@ -145,12 +145,12 @@ out:
145 145
146static int efivarfs_unlink(struct inode *dir, struct dentry *dentry) 146static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
147{ 147{
148 struct efivar_entry *var = dentry->d_inode->i_private; 148 struct efivar_entry *var = d_inode(dentry)->i_private;
149 149
150 if (efivar_entry_delete(var)) 150 if (efivar_entry_delete(var))
151 return -EINVAL; 151 return -EINVAL;
152 152
153 drop_nlink(dentry->d_inode); 153 drop_nlink(d_inode(dentry));
154 dput(dentry); 154 dput(dentry);
155 return 0; 155 return 0;
156}; 156};