On 10/14/26 11:27 PM, Gregory Price (Meta) wrote: > A caller that neither owns nor may write a file may page out the COW pages > of a private mapping of it, but not its file pages. When the advised range > only partly covers a large file folio, the folio must be filtered out > before it is split or reclaimed, on separate paths for PMD- and PTE-mapped > folios. > > Check that partial MADV_PAGEOUT by such a caller leaves every page of a > PMD-sized shmem folio resident, both when a PMD maps it and when a mapping > of half of it maps it with PTEs. > > Signed-off-by: Gregory Price (Meta) <[email protected]> > --- > tools/testing/selftests/mm/madvise.c | 121 +++++++++++++++++++++++++-- > 1 file changed, 115 insertions(+), 6 deletions(-) LGTM. Reviewed-by: Sarthak Sharma <[email protected]>
- [PATCH 6/8] selftests/mm: check MADV_COLD and MADV_PA... Gregory Price (Meta)
- Re: [PATCH 6/8] selftests/mm: check MADV_COLD an... Sarthak Sharma
- [PATCH 7/8] selftests/mm: check MADV_PAGEOUT file per... Gregory Price (Meta)
- Re: [PATCH 7/8] selftests/mm: check MADV_PAGEOUT... Sarthak Sharma
- Re: [PATCH 7/8] selftests/mm: check MADV_PAG... Gregory Price
- Re: [PATCH 7/8] selftests/mm: check MADV... Sarthak Sharma
- [PATCH 5/8] selftests/mm: check that MADV_COLD and MA... Gregory Price (Meta)
- Re: [PATCH 5/8] selftests/mm: check that MADV_CO... Sarthak Sharma
- [PATCH 8/8] selftests/mm: check that unauthorized MAD... Gregory Price (Meta)
- Re: [PATCH 8/8] selftests/mm: check that unautho... Gregory Price
- Re: [PATCH 8/8] selftests/mm: check that unautho... Sarthak Sharma
- [PATCH 2/8] selftests/mm: check that MADV_PAGEOUT ski... Gregory Price (Meta)
- Re: [PATCH 2/8] selftests/mm: check that MADV_PA... Sarthak Sharma
- [PATCH 4/8] selftests/mm: check that MADV_COLD and MA... Gregory Price (Meta)
- Re: [PATCH 4/8] selftests/mm: check that MADV_CO... Sarthak Sharma

