diff options
author | Scott Wood <scottwood@freescale.com> | 2015-04-11 03:37:34 +0300 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-04-15 23:24:22 +0300 |
commit | 50c6a665b383cb5839e45d04e36faeeefaffa052 (patch) | |
tree | 300d70280629baa31706090fdb6806e5d3bce237 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 39a8804455fb23f09157341d3ba7db6d7ae6ee76 (diff) | |
download | linux-50c6a665b383cb5839e45d04e36faeeefaffa052.tar.xz |
powerpc/hugetlb: Call mm_dec_nr_pmds() in hugetlb_free_pmd_range()
Commit dc6c9a35b66b5 ("mm: account pmd page tables to the process")
added a counter that is incremented whenever a PMD is allocated and
decremented whenever a PMD is freed. For hugepages on PPC, common code
is used to allocated PMDs, but arch-specific code is used to free PMDs.
This results in kernel output such as "BUG: non-zero nr_pmds on freeing
mm: 1" when using hugepages.
Update the PPC hugepage PMD freeing code to decrement the count, just
as the above commit did for free_pmd_range().
Fixes: dc6c9a35b66b5 ("mm: account pmd page tables to the process")
Signed-off-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # 4.0.x
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions