aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index 6088de312bb5..652e70df69bb 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -450,6 +450,7 @@ asmlinkage long sys_set_page_color(int cpu)
450 TRACE_TASK(current, "SHARED isolate_lru_page success\n"); 450 TRACE_TASK(current, "SHARED isolate_lru_page success\n");
451 } else { 451 } else {
452 TRACE_TASK(current, "SHARED isolate_lru_page failed\n"); 452 TRACE_TASK(current, "SHARED isolate_lru_page failed\n");
453 nr_failed++;
453 } 454 }
454 put_page(old_page); 455 put_page(old_page);
455 } 456 }
@@ -513,7 +514,10 @@ asmlinkage long sys_set_page_color(int cpu)
513 } 514 }
514*/ 515*/
515 if (!list_empty(&task_shared_pagelist)) { 516 if (!list_empty(&task_shared_pagelist)) {
516 ret = replicate_pages(&task_shared_pagelist, new_alloc_page, NULL, node, MIGRATE_SYNC, MR_SYSCALL); 517 if (node != 8)
518 ret = replicate_pages(&task_shared_pagelist, new_alloc_page, NULL, node, MIGRATE_SYNC, MR_SYSCALL);
519 else
520 ret = nr_shared_pages;
517 TRACE_TASK(current, "%ld shared pages not migrated.\n", ret); 521 TRACE_TASK(current, "%ld shared pages not migrated.\n", ret);
518 nr_not_migrated += ret; 522 nr_not_migrated += ret;
519 if (ret) { 523 if (ret) {
@@ -536,7 +540,7 @@ asmlinkage long sys_set_page_color(int cpu)
536 540
537 541
538 TRACE_TASK(current, "nr_pages = %d nr_failed = %d\n", nr_pages, nr_failed); 542 TRACE_TASK(current, "nr_pages = %d nr_failed = %d\n", nr_pages, nr_failed);
539 printk(KERN_INFO "node = %ld, nr_migrated_pages = %d, nr_shared_pages = %d, nr_failed = %d\n", node, nr_pages-nr_not_migrated, nr_shared_pages, nr_failed); 543 printk(KERN_INFO "node = %ld, nr_private_pages = %d, nr_shared_pages = %d, nr_failed_to_isolate_lru = %d, nr_not_migrated = %d\n", node, nr_pages, nr_shared_pages, nr_failed, nr_not_migrated);
540 544
541 flush_cache(1); 545 flush_cache(1);
542/* for debug START */ 546/* for debug START */