diff options
| author | David Hildenbrand <[email protected]> | 2023-04-22 21:01:56 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-05-03 00:21:50 +0000 |
| commit | 2c281f54f556e1f3266c8cb104adf9eea7a7b742 (patch) | |
| tree | b8884396dc61d0aa9851999d3443644c09806002 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | selftests/ksm: ksm_functional_tests: add prctl unmerge test (diff) | |
| download | kernel-2c281f54f556e1f3266c8cb104adf9eea7a7b742.tar.gz kernel-2c281f54f556e1f3266c8cb104adf9eea7a7b742.zip | |
mm/ksm: move disabling KSM from s390/gmap code to KSM code
Let's factor out actual disabling of KSM. The existing "mm->def_flags &=
~VM_MERGEABLE;" was essentially a NOP and can be dropped, because
def_flags should never include VM_MERGEABLE. Note that we don't currently
prevent re-enabling KSM.
This should now be faster in case KSM was never enabled, because we only
conditionally iterate all VMAs. Further, it certainly looks cleaner.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Acked-by: Janosch Frank <[email protected]>
Acked-by: Stefan Roesch <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Claudio Imbrenda <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
