From patchwork Sat Jul 16 08:03:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12919977 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 A28C5C433EF for ; Sat, 16 Jul 2022 08:04:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B17C8E0009; Sat, 16 Jul 2022 04:04:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 839C68E0001; Sat, 16 Jul 2022 04:04:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6DA468E0009; Sat, 16 Jul 2022 04:04:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5993F8E0001 for ; Sat, 16 Jul 2022 04:04:19 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2E789353F7 for ; Sat, 16 Jul 2022 08:04:19 +0000 (UTC) X-FDA: 79692225438.06.0D8616D Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf07.hostedemail.com (Postfix) with ESMTP id 89DFB4001E for ; Sat, 16 Jul 2022 08:04:16 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LlLLJ30rDzlVmw; Sat, 16 Jul 2022 16:02:32 +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, 16 Jul 2022 16:04:09 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm: remove obsolete comment in do_fault_around() Date: Sat, 16 Jul 2022 16:03:59 +0800 Message-ID: <20220716080359.38791-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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657958658; a=rsa-sha256; cv=none; b=YFC25MJWmw7KF3Aw/aiaKqXT45qu3utie79YK+XExbw86s8hf2Ccwnt8vlArsjsEyUK94C oPbzY8PdeYz5zaIYiwLp/oC9QKNZg/3PpLJM0RXcfEPRUw4CEiSDyiEHdc/ugbYFPVSgIQ A14IoaIsTAV6FABI/S51SUNgDLur4EA= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 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=1657958658; 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=YkO/D8voqP+N6h5u8BhjoBWuMg/QkicRNX6sxIdCxgY=; b=iYEJuBuyzLNkofOrI7EpY7GAsBQaGmKyoC8Dna9XaCUFP+2p8kFIrV4oEB0kC1E730ahcv NOEAXqZjZPE2bssjBNVIflMUA8IUWvxqcD4Gx1JH/s9reXt+XdTxlfK1ecJtdDS1PB+HGs VajbMPVPaz/Q8uDVNd68LT4Ol0n+MpI= X-Rspamd-Queue-Id: 89DFB4001E Authentication-Results: imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam05 X-Rspam-User: X-Stat-Signature: rbgymw7go67c5uk3xnzytkwyf19s1869 X-HE-Tag: 1657958656-566240 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: Since commit 7267ec008b5c ("mm: postpone page table allocation until we have page to map"), do_fault_around is not called with page table lock held. Cleanup the corresponding comments. Signed-off-by: Miaohe Lin --- mm/memory.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 14f0986af084..f671b2dce1fe 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4458,10 +4458,6 @@ late_initcall(fault_around_debugfs); * It uses vm_ops->map_pages() to map the pages, which skips the page if it's * not ready to be mapped: not up-to-date, locked, etc. * - * This function is called with the page table lock taken. In the split ptlock - * case the page table lock only protects only those entries which belong to - * the page table corresponding to the fault address. - * * This function doesn't cross the VMA boundaries, in order to call map_pages() * only once. *