mm: add kernel_misc_reclaimable in show_free_areas
authorliuhailong <liuhailong@oppo.com>
Thu, 2 Sep 2021 21:53:01 +0000 (14:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:10 +0000 (09:58 -0700)
commiteb2169cee36fc492407a2d483c286b977a46288a
treefcc583072281530f0bb2132d791366374dc51a95
parent4f3eaf452a14ff3982f71c1ca8bdf757254231fa
mm: add kernel_misc_reclaimable in show_free_areas

Print NR_KERNEL_MISC_RECLAIMABLE stat from show_free_areas() so users can
check whether the shrinker is working correctly and to show the current
memory usage.

Link: https://lkml.kernel.org/r/20210813104725.4562-1-liuhailong@oppo.com
Signed-off-by: liuhailong <liuhailong@oppo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c