Skip to contentSkip to conversation

mm-migrate-change-to-use-bool-type-for-page_was_mapped.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 9, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: migrate: change to use bool type for 'page_was_mapped'
has been removed from the -mm tree. Its filename was
mm-migrate-change-to-use-bool-type-for-page_was_mapped.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Baolin Wang <[email protected]>
Subject: mm: migrate: change to use bool type for 'page_was_mapped'

Change to use bool type for 'page_was_mapped' variable making it more readable.

---

 mm/migrate.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-change-to-use-bool-type-for-page_was_mapped +2 -2
@@ -960,7 +960,7 @@ static int __unmap_and_move(struct page
 				int force, enum migrate_mode mode)
 {
 	int rc = -EAGAIN;
-	int page_was_mapped = 0;
+	bool page_was_mapped = false;
 	struct anon_vma *anon_vma = NULL;
 	bool is_lru = !__PageMovable(page);
 
@@ -1063,7 +1063,7 @@ static int __unmap_and_move(struct page
 		VM_BUG_ON_PAGE(PageAnon(page) && !PageKsm(page) && !anon_vma,
 				page);
 		try_to_migrate(page, 0);
-		page_was_mapped = 1;
+		page_was_mapped = true;
 	}
 
 	if (!page_mapped(page))

_

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

mm-migrate-simplify-the-file-backed-pages-validation-when-migrating-its-mapping.patch