Skip to contentSkip to conversation

mm-show_mem-use-str_yes_no-helper-in-show_free_areas.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Nov 7, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/show_mem: use str_yes_no() helper in show_free_areas()
has been removed from the -mm tree. Its filename was
mm-show_mem-use-str_yes_no-helper-in-show_free_areas.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Thorsten Blum <[email protected]>
Subject: mm/show_mem: use str_yes_no() helper in show_free_areas()
Date: Sat, 26 Oct 2024 12:35:53 +0200

Remove hard-coded strings by using the str_yes_no() helper function.

---

 mm/show_mem.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/show_mem.c renamed from mm/show_mem.c~mm-show_mem-use-str_yes_no-helper-in-show_free_areas +1 -2
@@ -285,8 +285,7 @@ static void show_free_areas(unsigned int
 #endif
 			K(node_page_state(pgdat, NR_PAGETABLE)),
 			K(node_page_state(pgdat, NR_SECONDARY_PAGETABLE)),
-			pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES ?
-				"yes" : "no");
+			str_yes_no(pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES));
 	}
 
 	for_each_populated_zone(zone) {

_

Patches currently in -mm which might be from [email protected] are