]> 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>
Mon, 28 Nov 2022 20:58:46 +0000 (15:58 -0500)
commitbd43854c4ce76b84c3c29b37eb685f0ecf63725f
tree6721d246e188ec8e29f236c8e95217cab9eb01fb
parentf671de709e00c0a12b38f202c96c3355c1ac548b
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