]> 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 Howlett <Liam.Howlett@oracle.com>
Mon, 14 Nov 2022 17:08:27 +0000 (12:08 -0500)
commitd15f47b62d5c5df7f6fea1e0f3b6bf8a6120e8a8
treed55a2435b791a08fdb59c0b6ebf2b5aea62d55d5
parentf24bb684347aa4d72b1e4d0233d7b3b3509db649
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