]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Remove preallocation from do_mas_align_munmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 9 Nov 2022 15:29:14 +0000 (10:29 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 20:58:34 +0000 (15:58 -0500)
commitf244c41fc185d1eba19a40c415a7dfb39a591fcc
treeb99f54c47c09236618348c3c2933123a42e1f4b1
parent3791cba3d709f62eef772d13b12891c57912a22d
mm/mmap: Remove preallocation from do_mas_align_munmap()

In preparation of passing the vma state through split, the
pre-allocation that occurs before the split has to be moved to after.
Since the preallocation would then live right next to the store, just
call store instead of preallocating.  This effectively restores the
potential error path of splitting and not munmap'ing which pre-dates the
maple tree.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mmap.c