]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Don't use __vma_adjust() in shift_arg_pages()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Nov 2022 19:57:13 +0000 (14:57 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:40 +0000 (16:03 -0500)
commitc39d88abe6c0c448cce9237ca1ebc446f0d629ce
tree34ce0ed1f431ee5709a5e2e1390b44d2d10142e3
parent7ca936018932aaac27893dc7fe2797fe9b7be83f
mm/mmap: Don't use __vma_adjust() in shift_arg_pages()

Introduce shrink_vma() which uses the vma_prepare() and vma_complete()
functions to reduce the vma coverage.

Convert shift_arg_pages() to use expand_vma() and the new shrink_vma()
function.  Remove support from __vma_adjust() to reduce a vma size since
shift_arg_pages() is the only user that shrinks a VMA in this way.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
fs/exec.c
include/linux/mm.h
mm/mmap.c