summaryrefslogtreecommitdiffstats
path: root/kernel/fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/inode.c')
-rw-r--r--kernel/fs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/fs/inode.c b/kernel/fs/inode.c
index 1be5f9003..b0edef500 100644
--- a/kernel/fs/inode.c
+++ b/kernel/fs/inode.c
@@ -1733,8 +1733,8 @@ static int __remove_privs(struct dentry *dentry, int kill)
*/
int file_remove_privs(struct file *file)
{
- struct dentry *dentry = file->f_path.dentry;
- struct inode *inode = d_inode(dentry);
+ struct dentry *dentry = file_dentry(file);
+ struct inode *inode = file_inode(file);
int kill;
int error = 0;
@@ -1742,7 +1742,7 @@ int file_remove_privs(struct file *file)
if (IS_NOSEC(inode))
return 0;
- kill = file_needs_remove_privs(file);
+ kill = dentry_needs_remove_privs(dentry);
if (kill < 0)
return kill;
if (kill)