mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
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>
This commit is contained in:
parent
833dfc0090
commit
33ee4f1858
|
@ -366,7 +366,7 @@ static void establish_demotion_targets(void)
|
||||||
|
|
||||||
lockdep_assert_held_once(&memory_tier_lock);
|
lockdep_assert_held_once(&memory_tier_lock);
|
||||||
|
|
||||||
if (!node_demotion || !IS_ENABLED(CONFIG_MIGRATION))
|
if (!node_demotion)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
disable_all_demotion_targets();
|
disable_all_demotion_targets();
|
||||||
|
|
Loading…
Reference in a new issue