]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Use vma_prepare() and vma_complete() in vma_expand()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 5 Aug 2022 20:15:12 +0000 (16:15 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:39 +0000 (16:03 -0500)
commit6fe9fa5580f5d16836bc6130754ca7bda586cdcf
tree66f18a834f8a9f215e159826ee1d1caa018fd8e6
parent3e5f1b9af287d2d304a9de69f3b6b3e65c42603b
mm/mmap: Use vma_prepare() and vma_complete() in vma_expand()

Use the new locking functions for vma_expand().  This reduces code
duplication.

At the same time change VM_BUG_ON() to VM_WARN_ON()

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