diff options
author | David Hildenbrand <david@redhat.com> | 2022-11-16 11:26:41 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-30 15:58:57 -0800 |
commit | f8664f3c4a08f799122e8f0a8093056a7b3fbc8d (patch) | |
tree | aa54e9a5cbea4e3adc9a698f497ec62d90d012f4 /mm/hugetlb.c | |
parent | 7aca5ca154930a06612f4d7b81f710f3e1027e04 (diff) | |
download | linux-f8664f3c4a08f799122e8f0a8093056a7b3fbc8d.tar.gz linux-f8664f3c4a08f799122e8f0a8093056a7b3fbc8d.tar.bz2 linux-f8664f3c4a08f799122e8f0a8093056a7b3fbc8d.zip |
selftests/vm: cow: basic COW tests for non-anonymous pages
Let's add basic tests for COW with non-anonymous pages in private
mappings: write access should properly trigger COW and result in the
private changes not being visible through other page mappings.
Especially, add tests for:
* Zeropage
* Huge zeropage
* Ordinary pagecache pages via memfd and tmpfile()
* Hugetlb pages via memfd
Fortunately, all tests pass.
Link: https://lkml.kernel.org/r/20221116102659.70287-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions