diff options
| author | Lorenzo Stoakes <[email protected]> | 2025-05-29 17:15:48 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-07-10 05:41:54 +0000 |
| commit | 4a1ff347e44ce45e8a5c15f466574583b019e4f9 (patch) | |
| tree | f68ad4cc5eaa42aa1a8d3455586702c3ffcc7dc9 /mm/hugetlb.c | |
| parent | mm: prevent KSM from breaking VMA merging for new VMAs (diff) | |
| download | kernel-4a1ff347e44ce45e8a5c15f466574583b019e4f9.tar.gz kernel-4a1ff347e44ce45e8a5c15f466574583b019e4f9.zip | |
tools/testing/selftests: add VMA merge tests for KSM merge
Add test to assert that we have now allowed merging of VMAs when KSM
merging-by-default has been set by prctl(PR_SET_MEMORY_MERGE, ...).
We simply perform a trivial mapping of adjacent VMAs expecting a merge,
however prior to recent changes implementing this mode earlier than
before, these merges would not have succeeded.
Assert that we have fixed this!
Link: https://lkml.kernel.org/r/6dec7aabf062c6b121cfac992c9c716cefdda00c.1748537921.git.lorenzo.stoakes@oracle.com
Signed-off-by: Lorenzo Stoakes <[email protected]>
Reviewed-by: Chengming Zhou <[email protected]>
Tested-by: Chengming Zhou <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Stefan Roesch <[email protected]>
Cc: Xu Xin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions
