mm: thp: count 64k shmem pages separately
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 22 Sep 2021 13:29:33 +0000 (15:29 +0200)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +0900)
commitb79e618fd90b0292172db18b767d73fdb4703359
tree661d4cfec5cefb7ec5c1cc91920f74a4b0dc8931
parentdeb04f8a6609a1490554b3e22f3e1455778aafaa
mm: thp: count 64k shmem pages separately

64k THP for shmem needs separate counters, otherwise ShmemHugePages entry
in /proc/meminfo incorrectly shows both 2M and 64k THPs as 2M ones.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I460ea9f4e9c2f84bb066f68bfb6a291183416bb1
fs/proc/meminfo.c
include/linux/mmzone.h
mm/filemap.c
mm/huge_memory.c
mm/khugepaged.c
mm/page_alloc.c
mm/shmem.c
mm/vmstat.c