Commit e16922af authored by Yijing Wang's avatar Yijing Wang Committed by Joerg Roedel

iommu/vt-d: Use inline function dma_pte_superpage instead of macros

Use inline function dma_pte_superpage() instead of macro for
better readability.
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 8f9d41b4
......@@ -892,7 +892,7 @@ static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
break;
}
if (pte->val & DMA_PTE_LARGE_PAGE) {
if (dma_pte_superpage(pte)) {
*large_page = total;
return pte;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment