Re: [PATCH v7 13/20] mm/memory: Add vmf_insert_page_mkwrite()

2025-02-10 Thread David Hildenbrand
On 04.02.25 23:48, Alistair Popple wrote: Currently to map a DAX page the DAX driver calls vmf_insert_pfn. This creates a special devmap PTE entry for the pfn but does not take a reference on the underlying struct page for the mapping. This is because DAX page refcounts are treated specially, as

[PATCH v7 13/20] mm/memory: Add vmf_insert_page_mkwrite()

2025-02-04 Thread Alistair Popple
Currently to map a DAX page the DAX driver calls vmf_insert_pfn. This creates a special devmap PTE entry for the pfn but does not take a reference on the underlying struct page for the mapping. This is because DAX page refcounts are treated specially, as indicated by the presence of a devmap entry.