mm/page_alloc: fix incorrect PGFREE and PGALLOC for high-order page
authorYafang Shao <laoar.shao@gmail.com>
Thu, 6 Oct 2022 10:15:40 +0000 (10:15 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Oct 2022 01:51:51 +0000 (18:51 -0700)
commit15cd90049d595e592d8860ee15a3f23491d54d17
tree0daa991464b018c5f74eb15f6e6cc44ec3b2767b
parent26c92d37d3dc484157bdb4eb7d29991c017b168b
mm/page_alloc: fix incorrect PGFREE and PGALLOC for high-order page

PGFREE and PGALLOC represent the number of freed and allocated pages.  So
the page order must be considered.

Link: https://lkml.kernel.org/r/20221006101540.40686-1-laoar.shao@gmail.com
Fixes: 44042b449872 ("mm/page_alloc: allow high-order pages to be stored on the per-cpu lists")
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c