lkml.org 
[lkml]   [2022]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4 21/66] mm/mmap: Change do_brk_flags() to expand existing VMA and add do_brk_munmap()
Date
* Vlastimil Babka <vbabka@suse.cz> [220113 10:28]:
> On 12/1/21 15:29, Liam Howlett wrote:
> > @@ -1989,6 +2013,7 @@ EXPORT_SYMBOL(get_unmapped_area);
> > struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
> > {
> > struct vm_area_struct *vma;
> > + MA_STATE(mas, &mm->mm_mt, addr, addr);
> >
> > mmap_assert_locked(mm);
> > /* Check the cache first. */
> > @@ -1996,7 +2021,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
> > if (likely(vma))
> > return vma;
> >
> > - vma = mt_find(&mm->mm_mt, &addr, ULONG_MAX);
> > + vma = mas_find(&mas, -1);
> > if (vma)
> > vmacache_update(addr, vma);
> > return vma;
>
> Oh and this change to find_vma() was supposed to go to the next patch, no?


Yes, thanks. I will relocate this change to the next patch.
\
 
 \ /
  Last update: 2022-01-19 16:52    [W:0.151 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site