]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11173c1015c4c625b0beac58e5820536fb97428b
tree0daa991464b018c5f74eb15f6e6cc44ec3b2767b
parenta0a5eb14d68dae7603c93d00583fea4013ad7656
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: 566869e58fa3 ("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