]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc: make zone_pcp_update() static
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 16 Sep 2022 07:22:43 +0000 (15:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:28 +0000 (14:03 -0700)
commit839230ac2a90f8adf117e786250676df1e1f2b4f
treeee6f725633b012ea1648e129a49711de6b6ce82a
parent4cf08f5623ca9182acfd8c0e4770e801e8f7fc48
mm/page_alloc: make zone_pcp_update() static

Since commit d5c2b7e3eb26 ("mm/page_alloc: disassociate the pcp->high from
pcp->batch"), zone_pcp_update() is only used in mm/page_alloc.c.  Move
zone_pcp_update() up to avoid forward declaration and then make it static.
No functional change intended.

Link: https://lkml.kernel.org/r/20220916072257.9639-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/page_alloc.c