linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mmap: Remove do_brk_munmap() optimization
@ 2022-07-19 19:14 Liam Howlett
  2022-07-19 19:14 ` [PATCH 1/3] " Liam Howlett
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Liam Howlett @ 2022-07-19 19:14 UTC (permalink / raw)
  To: maple-tree@lists.infradead.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, Andrew Morton, Hugh Dickins
  Cc: Yu Zhao

Andrew,

The following is a series of changes to remove the do_brk_munmap()
optimization that Hugh flagged as an issue.  Please apply patch 1 to
(mm/mmap: change do_brk_flags() to expand existing VMA and add
do_brk_munmap()) and the last two should replace patches in the v11 set.

2/3 should replace 28/69
3/3 should replace 29/69

The end result should look like this:

static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma,                                          
                         unsigned long newbrk, unsigned long oldbrk,                                                
                         struct list_head *uf)                                                                      
{       
        struct mm_struct *mm = vma->vm_mm;                                                                          
        int ret;                                                                                                    
        
        arch_unmap(mm, newbrk, oldbrk);
        ret = do_mas_align_munmap(mas, vma, mm, newbrk, oldbrk, uf, true);                                          
        validate_mm_mt(mm);                                                                                         
        return ret;                                                                                                 
}

Thanks,
Liam


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-19 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 19:14 [PATCH 0/3] mmap: Remove do_brk_munmap() optimization Liam Howlett
2022-07-19 19:14 ` [PATCH 1/3] " Liam Howlett
2022-07-19 19:14 ` [PATCH 3/3] mm/mmap: change do_brk_munmap() to use Liam Howlett
2022-07-19 19:14 ` [PATCH 2/3 ] mm/mmap: reorganize munmap to use maple states Liam Howlett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).