]> git.baikalelectronics.ru Git - kernel.git/commit
mm: introduce wrappers to access mm->nr_ptes
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 16 Nov 2017 01:35:37 +0000 (17:35 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:04 +0000 (18:21 -0800)
commitd78b13108e21324f68ed51d13b3501f6e29fa87c
tree3739e892ee148260e2172d579a1c1d838594fb11
parentf7fc285a8f08e1d876450a68d4024309dd7eaebe
mm: introduce wrappers to access mm->nr_ptes

Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd
and nr_pud.

The patch also makes nr_ptes accounting dependent onto CONFIG_MMU.  Page
table accounting doesn't make sense if you don't have page tables.

It's preparation for consolidation of page-table counters in mm_struct.

Link: http://lkml.kernel.org/r/20171006100651.44742-1-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
arch/arm/mm/pgd.c
arch/sparc/mm/hugetlbpage.c
arch/unicore32/mm/pgd.c
fs/proc/task_mmu.c
include/linux/mm.h
include/linux/mm_types.h
kernel/fork.c
mm/debug.c
mm/huge_memory.c
mm/khugepaged.c
mm/memory.c
mm/oom_kill.c