diff options
| author | Andrea Arcangeli <[email protected]> | 2010-08-09 17:19:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-09 20:44:58 -0700 |
| commit | 288468c334e98aacbb7e2fb8bde6bc1adcd55e05 (patch) | |
| tree | f64cfebd7fedfd4e53fd5d4474048d5475a339b9 /tools/perf/scripts/python | |
| parent | ba6f0ff3981e6263ab81ac512f04cca55b85ec81 (diff) | |
rmap: always use anon_vma root pointer
Always use anon_vma->root pointer instead of anon_vma_chain.prev.
Also optimize the map-paths, if a mapping is already established no need
to overwrite it with root anon-vma list, we can keep the more finegrined
anon-vma and skip the overwrite: see the PageAnon check in !exclusive
case. This is also the optimization that hidden the ksm bug as this tends
to make ksm_might_need_to_copy skip the copy, but only the proper fix to
ksm_might_need_to_copy guarantees not triggering the ksm bug unless ksm is
in use. this is an optimization only...
[[email protected]: coding-style fixes]
Signed-off-by: Andrea Arcangeli <[email protected]>
Signed-off-by: Rik van Riel <[email protected]>
[[email protected]: fix false positive BUG_ON in __page_set_anon_rmap]
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