aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2016-09-23 13:21:16 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2016-09-23 13:21:16 -0400
commitba1e5e20e2a3481b973244e84597ed246a04fed0 (patch)
tree80294aa83c2a918133147b0edd3f4fd96f3992ff
parent3d747d348e58990e481ac5a9c79fc6bade98f61e (diff)
Plan b working
-rw-r--r--mm/migrate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index a5ff157cfe00..69687ab4277f 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -983,7 +983,7 @@ static int copy_to_new_page(struct page *newpage, struct page *page,
983 */ 983 */
984 //rc = mapping->a_ops->migratepage(mapping, 984 //rc = mapping->a_ops->migratepage(mapping,
985 // newpage, page, mode); 985 // newpage, page, mode);
986 rc = replicate_buffer_page(mapping, newpage, page, mode, has_replica); 986 rc = replicate_page(mapping, newpage, page, mode, has_replica);
987 } 987 }
988 else { 988 else {
989 TRACE_TASK(current, "fallback function\n"); 989 TRACE_TASK(current, "fallback function\n");
@@ -1434,7 +1434,7 @@ TRACE_TASK(current, "__unmap_and_copy returned %d\n", rc);
1434// putback_lru_page(page); 1434// putback_lru_page(page);
1435// } 1435// }
1436 1436
1437TRACE_TASK(current, "old page freed\n"); 1437//TRACE_TASK(current, "old page freed\n");
1438 /* 1438 /*
1439 * If migration was not successful and there's a freeing callback, use 1439 * If migration was not successful and there's a freeing callback, use
1440 * it. Otherwise, putback_lru_page() will drop the reference grabbed 1440 * it. Otherwise, putback_lru_page() will drop the reference grabbed