]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Trim page tables for 8M hugepages
authorNitin Gupta <nitin.m.gupta@oracle.com>
Fri, 29 Jul 2016 07:54:21 +0000 (00:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jul 2016 17:49:16 +0000 (10:49 -0700)
commit2f7bf2b3aaad30002b28ce13545bc6210959d0a5
treebaaa60bd0a6dfe46a902d7e151005b013f340e7f
parent6615e2d12b6ea28a6b2bfd15a89a51e1b0834686
sparc64: Trim page tables for 8M hugepages

For PMD aligned (8M) hugepages, we currently allocate
all four page table levels which is wasteful. We now
allocate till PMD level only which saves memory usage
from page tables.

Also, when freeing page table for 8M hugepage backed region,
make sure we don't try to access non-existent PTE level.

Orabug: 22630259

Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/hugetlb.h
arch/sparc/include/asm/pgtable_64.h
arch/sparc/include/asm/tsb.h
arch/sparc/mm/fault_64.c
arch/sparc/mm/hugetlbpage.c
arch/sparc/mm/init_64.c