projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5797dc
)
memory tier: remove unneeded disable_all_demotion_targets() when !CONFIG_MIGRATION
author
Miaohe Lin
<linmiaohe@huawei.com>
Tue, 6 Jun 2023 12:07:24 +0000
(20:07 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:00 +0000
(16:19 -0700)
There's no caller of disable_all_demotion_targets() when CONFIG_MIGRATION
is disabled. Remove it.
Link:
https://lkml.kernel.org/r/20230606120724.208552-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-tiers.c
patch
|
blob
|
history
diff --git
a/mm/memory-tiers.c
b/mm/memory-tiers.c
index e593e56e530b72bb6fd0bc0a00e456e0aedc93ff..dd04f0ce52773feb97ab1c88665d88c44cc87891 100644
(file)
--- a/
mm/memory-tiers.c
+++ b/
mm/memory-tiers.c
@@
-451,7
+451,6
@@
static void establish_demotion_targets(void)
}
#else
-static inline void disable_all_demotion_targets(void) {}
static inline void establish_demotion_targets(void) {}
#endif /* CONFIG_MIGRATION */