iommu/amd: Collect page-table pages in freelist
authorJoerg Roedel <jroedel@suse.de>
Fri, 9 Nov 2018 11:07:06 +0000 (12:07 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 15 Nov 2018 15:40:53 +0000 (16:40 +0100)
commitac3a7092ebcb011759cba39a259f7193e4f6ba62
tree406d95b94938fd6b91910e76b6c032c4df5ad7d9
parentccda4af0f4b92f7b4c308d3acc262f4a7e3affad
iommu/amd: Collect page-table pages in freelist

Collect all pages that belong to a page-table in a list and
free them after the tree has been traversed. This allows to
implement safer page-table updates in subsequent patches.
Also move the functions for page-table freeing a bit upwards
in the file so that they are usable from the iommu_map() path.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c