VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Baolin Wang <baolin.wang@linux.alibaba.com> 2021-09-08 15:18:06 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-08 15:32:34 -0700 commit: 213ecb3157514486a9ae6848a298b91a79cc2e2a parent: 68a9843f14b6b0d1ce023721814403253d8e9153
Commit Summary:
mm: migrate: change to use bool type for 'page_was_mapped'
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index d5a1d38c993c..24c2ff8fe4c0 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -960,7 +960,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
 				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 *page, struct page *newpage,
 		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))