Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250918
b: refs/heads/master
c: 821ed6b
h: refs/heads/master
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed May 25, 2011
1 parent bf8672d commit 24f4bfc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cbea1d3ab11946885d37a2461072ee4d687cb4e
refs/heads/master: 821ed6bbed3cf41c4050a431eeb822b33868d36a
7 changes: 7 additions & 0 deletions trunk/mm/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,13 @@ static void drain_cpu_pagevecs(int cpu)
*/
void deactivate_page(struct page *page)
{
/*
* In a workload with many unevictable page such as mprotect, unevictable
* page deactivation for accelerating reclaim is pointless.
*/
if (PageUnevictable(page))
return;

if (likely(get_page_unless_zero(page))) {
struct pagevec *pvec = &get_cpu_var(lru_deactivate_pvecs);

Expand Down

0 comments on commit 24f4bfc

Please sign in to comment.