memory tier: remove unneeded disable_all_demotion_targets() when !CONFIG_MIGRATION
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 6 Jun 2023 12:07:24 +0000 (20:07 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:00 +0000 (16:19 -0700)
commite6c715abb4ee0ffe291c83e2e3d22866f387cda9
tree7d932c366a181effcf8c07d20c2b3746845202d8
parente5797dc011182f8b25420bc977f37cd92fc6e755
memory tier: remove unneeded disable_all_demotion_targets() when !CONFIG_MIGRATION

There's no caller of disable_all_demotion_targets() when CONFIG_MIGRATION
is disabled.  Remove it.

Link: https://lkml.kernel.org/r/20230606120724.208552-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-tiers.c