diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-09-29 15:05:48 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-09-29 15:05:48 -0400 |
commit | 0e6a44a09800be09924707025646b3f3e3700306 (patch) | |
tree | cdfb12473efd82a6935e84b5225c17c54fcd4793 /litmus | |
parent | a75060efea2b2ce6e5bf8ab540c123de42395755 (diff) |
9/29/2016 find_get_page_readonly checks SCHED_LITMUS
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/litmus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index f88cd16ab86d..d31138c9b9a6 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -571,6 +571,12 @@ asmlinkage long sys_set_page_color(int cpu) | |||
571 | put_page(old_page); | 571 | put_page(old_page); |
572 | continue; | 572 | continue; |
573 | } | 573 | } |
574 | |||
575 | if (page_count(old_page) - page_mapcount(old_page) == 1) { | ||
576 | put_page(old_page); | ||
577 | continue; | ||
578 | } | ||
579 | |||
574 | TRACE_TASK(current, "addr: %08x, pfn: %ld, _mapcount: %d, _count: %d\n", vma_itr->vm_start + PAGE_SIZE*i, __page_to_pfn(old_page), page_mapcount(old_page), page_count(old_page)); | 580 | TRACE_TASK(current, "addr: %08x, pfn: %ld, _mapcount: %d, _count: %d\n", vma_itr->vm_start + PAGE_SIZE*i, __page_to_pfn(old_page), page_mapcount(old_page), page_count(old_page)); |
575 | put_page(old_page); | 581 | put_page(old_page); |
576 | } | 582 | } |