]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: unstub radix__vmemmap_remove_mapping()
authorReza Arbab <arbab@linux.vnet.ibm.com>
Mon, 16 Jan 2017 19:07:46 +0000 (13:07 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 02:54:20 +0000 (13:54 +1100)
commit248051235ad915dc0de8b3227a8e314bec2f07f7
tree264459907cfc4dcafc916968264325f6a36cc440
parent4b8102eea0eccab855f414ea783ec259f5669642
powerpc/mm: unstub radix__vmemmap_remove_mapping()

Use remove_pagetable() and friends for radix vmemmap removal.

We do not require the special-case handling of vmemmap done in the x86
versions of these functions. This is because vmemmap_free() has already
freed the mapped pages, and calls us with an aligned address range.

So, add a few failsafe WARNs, but otherwise the code to remove physical
mappings is already sufficient for vmemmap.

Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c