Commit 5a3fbef3 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Linus Torvalds
Browse files

mm: do not add nr_pmds into mm_struct if PMD is folded

CONFIG_PGTABLE_LEVELS is now available on every architecture and we can
use it to check if we need to add nr_pmds into mm_struct.
Signed-off-by: default avatarKirill A. Shutemov <>
Tested-by: default avatarGuenter Roeck <>
Cc: Richard Henderson <>
Cc: Ivan Kokshaysky <>
Cc: Matt Turner <>
Cc: "David S. Miller" <>
Cc: "H. Peter Anvin" <>
Cc: "James E.J. Bottomley" <>
Cc: Benjamin Herrenschmidt <>
Cc: Catalin Marinas <>
Cc: Chris Metcalf <>
Cc: David Howells <>
Cc: Fenghua Yu <>
Cc: Geert Uytterhoeven <>
Cc: Heiko Carstens <>
Cc: Helge Deller <>
Cc: Ingo Molnar <>
Cc: Jeff Dike <>
Cc: Kirill A. Shutemov <>
Cc: Koichi Yasutake <>
Cc: Martin Schwidefsky <>
Cc: Michael Ellerman <>
Cc: Paul Mackerras <>
Cc: Ralf Baechle <>
Cc: Richard Weinberger <>
Cc: Russell King <>
Cc: Thomas Gleixner <>
Cc: Tony Luck <>
Cc: Will Deacon <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 235a8f02
......@@ -364,7 +364,9 @@ struct mm_struct {
atomic_t mm_users; /* How many users with user space? */
atomic_t mm_count; /* How many references to "struct mm_struct" (users count as 1) */
atomic_long_t nr_ptes; /* PTE page table pages */
atomic_long_t nr_pmds; /* PMD page table pages */
int map_count; /* number of VMAs */
spinlock_t page_table_lock; /* Protects page tables and some counters */
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