Re: [PATCH 1/2] mm/huge_memory: take a reference on a folio PUD copied by fork

From: David Hildenbrand (Arm)

Date: Thu Nov 05 2026 - 11:25:30 EST


On 11/5/26 15:19, Konstantin Khorenko wrote:
>> Introducing folio_dup_file_rmap_pud() is better. But please see how I move
>> the comment and how passing mm+vma to the helper is not really reasonable.
>
> Thanks, agreed on both. v2 will pass only the VMAs, with the mms taken
> from them as in your patch, drop src_mm from copy_pud_range() and move
> the TODO next to the rmap duplication. folio_dup_file_rmap_pud() stays.
>
> Could v2 then replace your 01/36, so you can drop it from your series?

I dropped my version already, so please resend and I'll queue that one.

--
Cheers,

David