summaryrefslogtreecommitdiffstats
path: root/mm/memory-tiers.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-06-10 11:41:14 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-06-19 16:19:29 -0700
commit33ee4f185827d99fd0957ab3cea00b2266fc5abc (patch)
tree88a02a74a0a0eb330d605eb6565a130c0d27ab88 /mm/memory-tiers.c
parent833dfc0090b3f8017ddac82d818b2d8e5ceb61db (diff)
downloadlinux-33ee4f185827d99fd0957ab3cea00b2266fc5abc.tar.gz
linux-33ee4f185827d99fd0957ab3cea00b2266fc5abc.tar.bz2
linux-33ee4f185827d99fd0957ab3cea00b2266fc5abc.zip
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>
Diffstat (limited to 'mm/memory-tiers.c')
-rw-r--r--mm/memory-tiers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-tiers.c b/mm/memory-tiers.c
index dd04f0ce5277..a516e303e304 100644
--- a/mm/memory-tiers.c
+++ b/mm/memory-tiers.c
@@ -366,7 +366,7 @@ static void establish_demotion_targets(void)
lockdep_assert_held_once(&memory_tier_lock);
- if (!node_demotion || !IS_ENABLED(CONFIG_MIGRATION))
+ if (!node_demotion)
return;
disable_all_demotion_targets();