mm/balloon_compaction: make balloon page compaction callbacks static
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:01:31 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:31 +0000 (10:01 +1100)
commit1a873ce0bf08020a08b5b87f340a4a47cdcb23fb
tree08576865a23560c29ac45f0ff2879af0da7c36d9
parent6ffbf1ff6b0ff1c26c37d260b84dc444ab04d6f3
mm/balloon_compaction: make balloon page compaction callbacks static

Since commit b1123ea6d3b3 ("mm: balloon: use general non-lru movable page
feature"), these functions are called via balloon_aops callbacks.  They're
not called directly outside this file.  So make them static and clean up
the relevant code.

Link: https://lkml.kernel.org/r/20220125132221.2220-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/balloon_compaction.h
mm/balloon_compaction.c