[PATCH mm-unstable v1 06/20] mm: rework handling in do_wp_page() based on private vs. shared mappings

Vlastimil Babka vbabka at suse.cz
Tue Nov 22 14:20:23 UTC 2022


On 11/16/22 11:26, David Hildenbrand wrote:
> We want to extent FAULT_FLAG_UNSHARE support to anything mapped into a
> COW mapping (pagecache page, zeropage, PFN, ...), not just anonymous pages.
> Let's prepare for that by handling shared mappings first such that we can
> handle private mappings last.
> 
> While at it, use folio-based functions instead of page-based functions
> where we touch the code either way.
> 
> Signed-off-by: David Hildenbrand <david at redhat.com>

Reviewed-by: Vlastimil Babka <vbabka at suse.cz>



More information about the Linux-security-module-archive mailing list