aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2022-05-04 16:14:41 -0300
committerAlex Williamson <[email protected]>2022-05-13 10:14:19 -0600
commit50d63b5bbfd12262069ad062611cd5e69c5e9e05 (patch)
tree1642d1f0eb0fdbb2d974138b2b911905bfbe257c /include/linux/fpga/fpga-mgr.h
parentd55d9e7a4572182701ed0b62313b4f22e544e226 (diff)
vfio: Change vfio_external_user_iommu_id() to vfio_file_iommu_group()
The only caller wants to get a pointer to the struct iommu_group associated with the VFIO group file. Instead of returning the group ID then searching sysfs for that string to get the struct iommu_group just directly return the iommu_group pointer already held by the vfio_group struct. It already has a safe lifetime due to the struct file kref, the vfio_group and thus the iommu_group cannot be destroyed while the group file is open. Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Yi Liu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions