From: Liam R. Howlett Date: Tue, 1 Dec 2020 02:29:21 +0000 (-0500) Subject: mm/mmap: Don't mas_set in mma_region() to avoid a mas_reset() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c8ff7474fb9221c4a493ebb9b962bb1e2e5378cb;p=users%2Fjedix%2Flinux-maple.git mm/mmap: Don't mas_set in mma_region() to avoid a mas_reset() Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index 27aa6e9783de..5878c7d06088 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2774,7 +2774,7 @@ cannot_expand: * and so the call to vma_mas_link()->vma_mas_store()->mas_store_gfp() * will detect the write as a spanning store and reset mas if necessary. */ - mas_set(&mas, addr); + mas.index = mas.last = addr; mas_walk(&mas); vma_mas_link(mm, vma, &mas, prev); /* Once vma denies write, undo our temporary denial count */