Skip to content

Commit

Permalink
memory tier: remove unneeded !IS_ENABLED(CONFIG_MIGRATION) check
Browse files Browse the repository at this point in the history
establish_demotion_targets() is defined while CONFIG_MIGRATION is
enabled. There's no need to check it again.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
MiaoheLin authored and akpm00 committed Jun 19, 2023
1 parent 833dfc0 commit 33ee4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memory-tiers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 33ee4f1

Please sign in to comment.