diff options
| author | Hugh Dickins <[email protected]> | 2009-09-21 17:03:29 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-22 07:17:40 -0700 |
| commit | 1ac0cb5d0e22d5e483f56b2bc12172dec1cf7536 (patch) | |
| tree | 68114711dc747a557895896af991623438034c2d /tools/perf/scripts/python | |
| parent | 2a15efc953b26ad57d7d38b9e6782d57e53b4ab2 (diff) | |
mm: fix anonymous dirtying
do_anonymous_page() has been wrong to dirty the pte regardless.
If it's not going to mark the pte writable, then it won't help
to mark it dirty here, and clogs up memory with pages which will
need swap instead of being thrown away. Especially wrong if no
overcommit is chosen, and this vma is not yet VM_ACCOUNTed -
we could exceed the limit and OOM despite no overcommit.
Signed-off-by: Hugh Dickins <[email protected]>
Cc: <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions