Skip to contentSkip to conversation

mm-migratec-call-detach_page_private-to-cleanup-code.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 2, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/migrate.c: call detach_page_private to cleanup code
has been removed from the -mm tree. Its filename was
mm-migratec-call-detach_page_private-to-cleanup-code.patch

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

------------------------------------------------------
From: Guoqing Jiang <[email protected]>
Subject: mm/migrate.c: call detach_page_private to cleanup code

We can cleanup code a little by call detach_page_private here.

[[email protected]: use attach_page_private(), per Dave]
http://lkml.kernel.org/r/[email protected]

[[email protected]: clear PagePrivate]
Cc Chao Yu <[email protected]>
Cc Cong Wang <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Eric Biggers <[email protected]>
Cc Gao Xiang <[email protected]>
Cc Jaegeuk Kim <[email protected]>
Cc John Hubbard <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Johannes Thumshirn <[email protected]>
Cc Miklos Szeredi <[email protected]>

---

 mm/migrate.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migratec-call-detach_page_private-to-cleanup-code +1 -5
@@ -797,10 +797,7 @@ recheck_buffers:
 	if (rc != MIGRATEPAGE_SUCCESS)
 		goto unlock_buffers;
 
-	ClearPagePrivate(page);
-	set_page_private(newpage, page_private(page));
-	set_page_private(page, 0);
-	put_page(page);
+	attach_page_private(newpage, detach_page_private(page));
 	get_page(newpage);
 
 	bh = head;
@@ -810,8 +807,6 @@ recheck_buffers:
 
 	} while (bh != head);
 
-	SetPagePrivate(newpage);