* [obsolete] mm-demotion-expose-memory-tier-details-via-sysfs-fix-2.patch removed from -mm tree
@ 2022-08-31 1:27 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-08-31 1:27 UTC (permalink / raw)
To: mm-commits, naoya.horiguchi, lkp, linmiaohe, aneesh.kumar, akpm, akpm
The quilt patch titled
Subject: mm-demotion-expose-memory-tier-details-via-sysfs-fix-2
has been removed from the -mm tree. Its filename was
mm-demotion-expose-memory-tier-details-via-sysfs-fix-2.patch
This patch was dropped because it is obsolete
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-demotion-expose-memory-tier-details-via-sysfs-fix-2
Date: Tue Aug 30 03:14:15 PM PDT 2022
temp build fix
Reported-by: kernel test robot <lkp@intel.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory-tiers.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
--- a/mm/memory-tiers.c~mm-demotion-expose-memory-tier-details-via-sysfs-fix-2
+++ a/mm/memory-tiers.c
@@ -108,7 +108,20 @@ static int top_tier_adistance;
*
*/
static struct demotion_nodes *node_demotion __read_mostly;
-#endif /* CONFIG_MIGRATION */
+
+/* I need a comment too */
+static inline bool i_need_a_name(struct memory_tier *memtier)
+{
+ return memtier->adistance_start >= top_tier_adistance;
+}
+
+#else /* CONFIG_MIGRATION */
+
+static inline bool i_need_a_name(struct memory_tier *memtier)
+{
+ return false;
+}
+#endif /* CONFIG_MIGRATION */
static __always_inline nodemask_t get_memtier_nodemask(struct memory_tier *memtier)
{
@@ -648,7 +661,7 @@ static ssize_t toptier_nodes_show(struct
mutex_lock(&memory_tier_lock);
list_for_each_entry(memtier, &memory_tiers, list) {
- if (memtier->adistance_start >= top_tier_adistance)
+ if (i_need_a_name(memtier))
break;
nmask = get_memtier_nodemask(memtier);
nodes_or(top_tier_mask, top_tier_mask, nmask);
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm-page_alloc-fix-race-condition-between-build_all_zonelists-and-page-allocation-fix.patch
procfs-add-path-to-proc-pid-fdinfo-fix.patch
zsmalloc-zs_object_copy-add-clarifying-comment-fix.patch
mm-gupc-simplify-and-fix-check_and_migrate_movable_pages-return-codes-fix-fix.patch
mm-oom_kill-add-trace-logs-in-process_mrelease-system-call-fix.patch
zsmalloc-zs_object_copy-replace-email-link-to-doc-checkpatch-fixes.patch
mm-demotion-add-support-for-explicit-memory-tiers-fix.patch
mm-demotion-update-node_is_toptier-to-work-with-memory-tiers-fix-2.patch
mm-demotion-expose-memory-tier-details-via-sysfs-fix.patch
mm-drop-oom-code-from-exit_mmap-fix-fix.patch
mm-delete-unused-mmf_oom_victim-flag-vs-mglru.patch
mm-add-merging-after-mremap-resize-checkpatch-fixes.patch
mm-gupc-refactor-check_and_migrate_movable_pages-fix.patch
hugetlb-rename-remove_huge_page-to-hugetlb_delete_from_page_cache-fix.patch
hugetlb-handle-truncate-racing-with-page-faults-fix-fix.patch
mm-reduce-noise-in-show_mem-for-lowmem-allocations-fix-2.patch
mm-reduce-noise-in-show_mem-for-lowmem-allocations-vs-mapletree.patch
page_ext-introduce-boot-parameter-early_page_ext-fix.patch
mm-fix-null-ptr-deref-in-kswapd_is_running-fix.patch
ia64-fix-clock_getresclock_monotonic-to-report-itc-frequency-checkpatch-fixes.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-31 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 1:27 [obsolete] mm-demotion-expose-memory-tier-details-via-sysfs-fix-2.patch removed from -mm tree 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.