]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/infiniband/hw/ipath/ipath_file_ops.c
new helper: file_inode(file)
[mirror_ubuntu-hirsute-kernel.git] / drivers / infiniband / hw / ipath / ipath_file_ops.c
index 3eb7e454849b4e1e7064dcb5cbdd84a03c18f307..aed8afee56da16a6a3609a247c9bea2c54060c44 100644 (file)
@@ -1864,9 +1864,9 @@ static int ipath_assign_port(struct file *fp,
                goto done_chk_sdma;
        }
 
-       i_minor = iminor(fp->f_path.dentry->d_inode) - IPATH_USER_MINOR_BASE;
+       i_minor = iminor(file_inode(fp)) - IPATH_USER_MINOR_BASE;
        ipath_cdbg(VERBOSE, "open on dev %lx (minor %d)\n",
-                  (long)fp->f_path.dentry->d_inode->i_rdev, i_minor);
+                  (long)file_inode(fp)->i_rdev, i_minor);
 
        if (i_minor)
                ret = find_free_port(i_minor - 1, fp, uinfo);