]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/vma: Drop incorrect comment from vms_gather_munmap_vmas()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 16 Aug 2024 19:34:43 +0000 (15:34 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 27 Aug 2024 16:49:10 +0000 (12:49 -0400)
The comment has been outdated since 6b73cff239e52 ("mm: change munmap
splitting order and move_vma()").  The move_vma() was altered to fix the
fragile state of the accounting since then.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
mm/vma.c

index 32a642bee7829e5f227f1f54a6fd71336513ca1d..e5a5e418c7cb653620ac0c9ff77ab5a7ad6d8b3f 100644 (file)
--- a/mm/vma.c
+++ b/mm/vma.c
@@ -755,13 +755,8 @@ int vms_gather_munmap_vmas(struct vma_munmap_struct *vms,
 
        /*
         * If we need to split any vma, do it now to save pain later.
-        *
-        * Note: mremap's move_vma VM_ACCOUNT handling assumes a partially
-        * unmapped vm_area_struct will remain in use: so lower split_vma
-        * places tmp vma above, and higher split_vma places tmp vma below.
+        * Does it split the first one?
         */
-
-       /* Does it split the first one? */
        if (vms->start > vms->vma->vm_start) {
 
                /*