Skip to content

Commit 33ee4f1

Browse files
MiaoheLinakpm00
authored andcommitted
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>
1 parent 833dfc0 commit 33ee4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memory-tiers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static void establish_demotion_targets(void)
366366

367367
lockdep_assert_held_once(&memory_tier_lock);
368368

369-
if (!node_demotion || !IS_ENABLED(CONFIG_MIGRATION))
369+
if (!node_demotion)
370370
return;
371371

372372
disable_all_demotion_targets();

0 commit comments

Comments
 (0)