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:
Родитель
8f9d41b430
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче