Re: [PATCH v2 2/4] mm/fork: Pass new vma pointer into copy_page_range()

From: Peter Xu
Date: Wed Sep 30 2020 - 13:05:22 EST


On Wed, Sep 30, 2020 at 04:30:55PM +0300, Kirill A. Shutemov wrote:
> > int copy_page_range(struct mm_struct *dst, struct mm_struct *src,
> > - struct vm_area_struct *vma);
> > + struct vm_area_struct *vma, struct vm_area_struct *new);
>
> It makes dst/src mm_struct arguments redundant. There's always vma->vm_mm.

Indeed. I'll post a patch later for it. Thanks.

--
Peter Xu