Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ static inline void page_table_free_pgste(unsigned long *table)
	page = pfn_to_page(__pa(table) >> PAGE_SHIFT);
	mp = (struct gmap_pgtable *) page->index;
	BUG_ON(!list_empty(&mp->mapper));
	pgtable_page_ctor(page);
	pgtable_page_dtor(page);
	atomic_set(&page->_mapcount, -1);
	kfree(mp);
	__free_page(page);