forked from Minki/linux
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: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
8f9d41b430
commit
e16922af9d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user