Re: [PATCH RFC 07/14] fs/dax: use vmf_insert_folio_pmd() to insert the huge zero folio

2025-06-25 Thread David Hildenbrand
On 24.06.25 03:16, Alistair Popple wrote: On Tue, Jun 17, 2025 at 05:43:38PM +0200, David Hildenbrand wrote: Let's convert to vmf_insert_folio_pmd(). In the unlikely case there is already something mapped, we'll now still call trace_dax_pmd_load_hole() and return VM_FAULT_NOPAGE. That should p

Re: [PATCH RFC 07/14] fs/dax: use vmf_insert_folio_pmd() to insert the huge zero folio

2025-06-23 Thread Alistair Popple
On Tue, Jun 17, 2025 at 05:43:38PM +0200, David Hildenbrand wrote: > Let's convert to vmf_insert_folio_pmd(). > > In the unlikely case there is already something mapped, we'll now still > call trace_dax_pmd_load_hole() and return VM_FAULT_NOPAGE. > > That should probably be fine, no need to add s

[PATCH RFC 07/14] fs/dax: use vmf_insert_folio_pmd() to insert the huge zero folio

2025-06-17 Thread David Hildenbrand
Let's convert to vmf_insert_folio_pmd(). In the unlikely case there is already something mapped, we'll now still call trace_dax_pmd_load_hole() and return VM_FAULT_NOPAGE. That should probably be fine, no need to add special cases for that. Signed-off-by: David Hildenbrand --- fs/dax.c | 47 ++