mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +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);
|
||||
|
||||
if (!node_demotion || !IS_ENABLED(CONFIG_MIGRATION))
|
||||
if (!node_demotion)
|
||||
return;
|
||||
|
||||
disable_all_demotion_targets();
|
||||
|
Loading…
Reference in New Issue
Block a user