Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282990
b: refs/heads/master
c: c909e99
h: refs/heads/master
v: v3
  • Loading branch information
Konstantin Khlebnikov authored and Linus Torvalds committed Jan 11, 2012
1 parent f7163ab commit 3860fdc
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 34dbc67a644f11ab3475d822d72e25409911e760
refs/heads/master: c909e99364c8b6ca07864d752950b6b4ecf6bef4
6 changes: 6 additions & 0 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,12 @@ static enum page_references page_check_references(struct page *page,
if (referenced_page || referenced_ptes > 1)
return PAGEREF_ACTIVATE;

/*
* Activate file-backed executable pages after first usage.
*/
if (vm_flags & VM_EXEC)
return PAGEREF_ACTIVATE;

return PAGEREF_KEEP;
}

Expand Down

0 comments on commit 3860fdc

Please sign in to comment.