mm/mmap: fix obsolete comment of find_extend_vma

Bugzilla: https://bugzilla.redhat.com/2160210

commit cdb5c9e53f2e7166409dbf7248364f592d11bd1c
Author: Miaohe Lin <linmiaohe@huawei.com>
Date:   Sat Jul 9 17:25:27 2022 +0800

    mm/mmap: fix obsolete comment of find_extend_vma

    mmget_still_valid() has already been removed via commit 4d45e75a99 ("mm:
    remove the now-unnecessary mmget_still_valid() hack").  Update the
    corresponding comment.

    Link: https://lkml.kernel.org/r/20220709092527.47778-1-linmiaohe@huawei.com
    Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
This commit is contained in:
Chris von Recklinghausen 2023-03-24 07:44:38 -04:00
parent 6bedbaffaa
commit 900ee6e27a
1 changed files with 0 additions and 1 deletions

View File

@ -2565,7 +2565,6 @@ find_extend_vma(struct mm_struct *mm, unsigned long addr)
vma = find_vma_prev(mm, addr, &prev);
if (vma && (vma->vm_start <= addr))
return vma;
/* don't alter vm_end if the coredump is running */
if (!prev || expand_stack(prev, addr))
return NULL;
if (prev->vm_flags & VM_LOCKED)