Skip to contentSkip to conversation

mm-damon-paddr-initialize-nr_succeeded-in-__damon_pa_migrate_folio_list.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 5, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/damon/paddr: initialize nr_succeeded in __damon_pa_migrate_folio_list()
has been removed from the -mm tree. Its filename was
mm-damon-paddr-initialize-nr_succeeded-in-__damon_pa_migrate_folio_list.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: SeongJae Park <[email protected]>
Subject: mm/damon/paddr: initialize nr_succeeded in __damon_pa_migrate_folio_list()
Date: Mon, 1 Jul 2024 09:53:32 -0700

The variable is supposed to be set via later migrate_pages() call. However, the function does not do that when CONFIG_MIGRATION is unset. Initialize the variable to zero.

---

 mm/damon/paddr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/damon/paddr.c renamed from mm/damon/paddr.c~mm-damon-paddr-initialize-nr_succeeded-in-__damon_pa_migrate_folio_list +1 -1
@@ -332,7 +332,7 @@ static unsigned int __damon_pa_migrate_f
 		struct list_head *migrate_folios, struct pglist_data *pgdat,
 		int target_nid)
 {
-	unsigned int nr_succeeded;
+	unsigned int nr_succeeded = 0;
 	nodemask_t allowed_mask = NODE_MASK_NONE;
 	struct migration_target_control mtc = {
 		/*

_

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

docs-mm-damon-design-fix-two-typos.patch docs-mm-damon-design-clarify-regions-merging-operation.patch docs-admin-guide-mm-damon-start-add-access-pattern-snapshot-example.patch docs-mm-damon-design-add-links-from-overall-architecture-to-sections-of-details.patch docs-mm-damon-design-move-configurable-operations-set-section-into-operations-set-layer-section.patch docs-mm-damon-design-remove-programmable-modules-section-in-favor-of-modules-section.patch docs-mm-damon-design-add-links-to-sections-of-damon-sysfs-interface-usage-doc.patch docs-mm-damon-index-add-links-to-design.patch docs-mm-damon-index-add-links-to-admin-guide-doc.patch