# Re: \[PATCH mm-unstable v1 06/20\] mm: rework handling in do\_wp\_page() based on private vs. shared mappings

- From: Vlastimil Babka \<hidden\>
- Date: 2022-11-22 14:20:35 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2022/11/239160
- Thread: https://ratatoskr.run/linux-alpha/2022/11/238739/t.md

```text
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 <redacted>

Reviewed-by: Vlastimil Babka <redacted>

```
