Skip to contentSkip to conversation

mm-swap-use-str_true_false-helper-function.patch removed from -mm tree

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

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: swap: use str_true_false() helper function
has been removed from the -mm tree. Its filename was
mm-swap-use-str_true_false-helper-function.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: swap: use str_true_false() helper function
Date: Wed, 16 Oct 2024 16:10:41 +0200

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

---

 mm/swap_state.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/swap_state.c renamed from mm/swap_state.c~mm-swap-use-str_true_false-helper-function +1 -2
@@ -889,8 +889,7 @@ struct folio *swapin_readahead(swp_entry
 static ssize_t vma_ra_enabled_show(struct kobject *kobj,
 				     struct kobj_attribute *attr, char *buf)
 {
-	return sysfs_emit(buf, "%s\n",
-			  enable_vma_readahead ? "true" : "false");
+	return sysfs_emit(buf, "%s\n", str_true_false(enable_vma_readahead));
 }
 static ssize_t vma_ra_enabled_store(struct kobject *kobj,
 				      struct kobj_attribute *attr,

_

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

mailmap-add-entry-for-thorsten-blum.patch mm-show_mem-use-str_yes_no-helper-in-show_free_areas.patch ipc-msg-replace-one-element-array-with-flexible-array-member.patch