Commit 2320c579 authored by Martin Schwidefsky's avatar Martin Schwidefsky

[S390] incorrect PageTables counter for kvm page tables

The page_table_free_pgste function is used for kvm processes to free page
tables that have the pgste extension. It calls pgtable_page_ctor instead of
pgtable_page_dtor which increases NR_PAGETABLE instead of decreasing it.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent f3612304
...@@ -574,7 +574,7 @@ static inline void page_table_free_pgste(unsigned long *table) ...@@ -574,7 +574,7 @@ static inline void page_table_free_pgste(unsigned long *table)
page = pfn_to_page(__pa(table) >> PAGE_SHIFT); page = pfn_to_page(__pa(table) >> PAGE_SHIFT);
mp = (struct gmap_pgtable *) page->index; mp = (struct gmap_pgtable *) page->index;
BUG_ON(!list_empty(&mp->mapper)); BUG_ON(!list_empty(&mp->mapper));
pgtable_page_ctor(page); pgtable_page_dtor(page);
atomic_set(&page->_mapcount, -1); atomic_set(&page->_mapcount, -1);
kfree(mp); kfree(mp);
__free_page(page); __free_page(page);
......
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