OSDN Git Service

memory tier: remove unneeded !IS_ENABLED(CONFIG_MIGRATION) check
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 10 Jun 2023 03:41:14 +0000 (11:41 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:29 +0000 (16:19 -0700)
commit33ee4f185827d99fd0957ab3cea00b2266fc5abc
tree88a02a74a0a0eb330d605eb6565a130c0d27ab88
parent833dfc0090b3f8017ddac82d818b2d8e5ceb61db
memory tier: remove unneeded !IS_ENABLED(CONFIG_MIGRATION) check

establish_demotion_targets() is defined while CONFIG_MIGRATION is
enabled. There's no need to check it again.

Link: https://lkml.kernel.org/r/20230610034114.981861-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-tiers.c