]> 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)
commitb8c6b6841c5574a6753bb955ccb0b34263caac1d
tree0daa991464b018c5f74eb15f6e6cc44ec3b2767b
parent7ca711c30c7f7e8d7d3ea6fa7be723a65e2251cc
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: f769c269399e ("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