From: David Rientjes Date: Tue, 7 Apr 2020 03:04:25 +0000 (-0700) Subject: mm, shmem: add vmstat for hugepage fallback X-Git-Tag: Ubuntu-5.10.0-12.13~3123^2~141 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=dcdf11ee144133328664d90836e712d840d047d9;hp=dcdf11ee144133328664d90836e712d840d047d9;p=mirror_ubuntu-hirsute-kernel.git mm, shmem: add vmstat for hugepage fallback The existing thp_fault_fallback indicates when thp attempts to allocate a hugepage but fails, or if the hugepage cannot be charged to the mem cgroup hierarchy. Extend this to shmem as well. Adds a new thp_file_fallback to complement thp_file_alloc that gets incremented when a hugepage is attempted to be allocated but fails, or if it cannot be charged to the mem cgroup hierarchy. Additionally, remove the check for CONFIG_TRANSPARENT_HUGE_PAGECACHE from shmem_alloc_hugepage() since it is only called with this configuration option. Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Reviewed-by: Yang Shi Acked-by: Kirill A. Shutemov Cc: Mike Rapoport Cc: Jeremy Cline Cc: Andrea Arcangeli Cc: Mike Kravetz Cc: Michal Hocko Cc: Vlastimil Babka Link: http://lkml.kernel.org/r/alpine.DEB.2.21.2003061421240.7412@chino.kir.corp.google.com Signed-off-by: Linus Torvalds ---