From patchwork Sat Jul 9 09:25:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12912130 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F32EC43334 for ; Sat, 9 Jul 2022 09:25:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 270376B0072; Sat, 9 Jul 2022 05:25:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 222086B0073; Sat, 9 Jul 2022 05:25:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E8936B0074; Sat, 9 Jul 2022 05:25:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EE1CD6B0072 for ; Sat, 9 Jul 2022 05:25:39 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id C4B8B6020C for ; Sat, 9 Jul 2022 09:25:39 +0000 (UTC) X-FDA: 79667028798.31.4EA4190 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf23.hostedemail.com (Postfix) with ESMTP id CC99A140038 for ; Sat, 9 Jul 2022 09:25:36 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Lg4R72NcTzTgbm; Sat, 9 Jul 2022 17:21:55 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 9 Jul 2022 17:25:33 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm/mmap: fix obsolete comment of find_extend_vma Date: Sat, 9 Jul 2022 17:25:27 +0800 Message-ID: <20220709092527.47778-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657358739; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=8HZK4Xw1//09fPjmoiFZ3eS0ZyRmsJL5I3wqQ80Maq4=; b=O4dPpAmds+07RU9yeC7znYnLOyuw3s3SnIRZ8EB3VjtPfejafsnEWlGkBMacLIh5W3tikL pEXbG2yRygvssDheSbcD6DqGajSkJSWYrDFKDJCxHK8c+QG7IpA3kpsuVLj3S5d0MPhpiq PifJylB9d22POS+IDlO1SZy17K9FJog= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657358739; a=rsa-sha256; cv=none; b=4e0rsXYBLq4SUPcZ2nRoCS7okoXK4ukyZlgsSNQjEn2fvwaXV4RyNbNWUxKNny0I5yPoei x5TGkfVMKrM127bCunVfU4feNYGirG5ztJCliJd4ME+30Rmvo8g35C/ywF0Ufd1qDncJZw JW6ICOWKXOhSussJUo6yG2+YLZgd2ok= X-Rspam-User: X-Stat-Signature: xu7i7ecwadsynrbzirs18wjt4ktg1q5j X-Rspamd-Queue-Id: CC99A140038 Authentication-Results: imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam11 X-HE-Tag: 1657358736-801281 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: mmget_still_valid() has already been removed via commit 4d45e75a9955 ("mm: remove the now-unnecessary mmget_still_valid() hack"). Update the corresponding comment. Signed-off-by: Miaohe Lin --- mm/mmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index 03c9ca35e0f4..4c10ffe80634 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2126,7 +2126,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)