]> 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>
Wed, 10 Aug 2022 21:24:05 +0000 (17:24 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 26 Aug 2022 17:57:55 +0000 (13:57 -0400)
commit5d121af692e3527d70b55bb4dc1dfc6573d09036
treea3b085b001a155780dcffc60b153a743a824c0f9
parent8e4d1343c6ab4188213e048a7c65e0ce631d6417
mm/mmap: Don't use __vma_adjust() in shift_arg_pages()

Introduce shrink_vma() which uses the lock_vma() and unlock_vma()
functions to reduce the vma coverage.

Convert shift_arg_pages() to use expand_vma() and the new shrink_vma()
function.  Remove shrink_vma() support from __vma_adjust() 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