* + memory-tier-remove-unneeded-is_enabledconfig_migration-check.patch added to mm-unstable branch
@ 2023-06-12 21:33 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-06-12 21:33 UTC (permalink / raw)
To: mm-commits, david, linmiaohe, akpm
The patch titled
Subject: memory tier: remove unneeded !IS_ENABLED(CONFIG_MIGRATION) check
has been added to the -mm mm-unstable branch. Its filename is
memory-tier-remove-unneeded-is_enabledconfig_migration-check.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/memory-tier-remove-unneeded-is_enabledconfig_migration-check.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Miaohe Lin <linmiaohe@huawei.com>
Subject: memory tier: remove unneeded !IS_ENABLED(CONFIG_MIGRATION) check
Date: Sat, 10 Jun 2023 11:41:14 +0800
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory-tiers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/memory-tiers.c~memory-tier-remove-unneeded-is_enabledconfig_migration-check
+++ a/mm/memory-tiers.c
@@ -366,7 +366,7 @@ static void establish_demotion_targets(v
lockdep_assert_held_once(&memory_tier_lock);
- if (!node_demotion || !IS_ENABLED(CONFIG_MIGRATION))
+ if (!node_demotion)
return;
disable_all_demotion_targets();
_
Patches currently in -mm which might be from linmiaohe@huawei.com are
mm-remove-obsolete-alloc_migrate_target.patch
mm-vmscan-mark-kswapd_run-and-kswapd_stop-__meminit.patch
memory-tier-remove-unneeded-disable_all_demotion_targets-when-config_migration.patch
mm-compaction-mark-kcompactd_run-and-kcompactd_stop-__meminit.patch
memory-tier-remove-unneeded-is_enabledconfig_migration-check.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-12 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-12 21:33 + memory-tier-remove-unneeded-is_enabledconfig_migration-check.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.