]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/powerpc/platforms/pseries/hvCall_inst.c
new helper: file_inode(file)
[mirror_ubuntu-bionic-kernel.git] / arch / powerpc / platforms / pseries / hvCall_inst.c
index c9311cfdfcaced8b283e53aab5e6e96e152ad39b..cf4e7736e4f1809eafde15d1512647c15bad0478 100644 (file)
@@ -86,7 +86,7 @@ static int hcall_inst_seq_open(struct inode *inode, struct file *file)
 
        rc = seq_open(file, &hcall_inst_seq_ops);
        seq = file->private_data;
-       seq->private = file->f_path.dentry->d_inode->i_private;
+       seq->private = file_inode(file)->i_private;
 
        return rc;
 }