From patchwork Sat Jul 1 03:28:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Zhang X-Patchwork-Id: 13298861 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 72A2FC0015E for ; Sat, 1 Jul 2023 03:29:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FA9C8E0063; Fri, 30 Jun 2023 23:29:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9AA818E0059; Fri, 30 Jun 2023 23:29:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 872748E0063; Fri, 30 Jun 2023 23:29:07 -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 74B1F8E0059 for ; Fri, 30 Jun 2023 23:29:07 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 431FA16037F for ; Sat, 1 Jul 2023 03:29:07 +0000 (UTC) X-FDA: 80961611934.20.79338A1 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf25.hostedemail.com (Postfix) with ESMTP id 935C4A0004 for ; Sat, 1 Jul 2023 03:29:04 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf25.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688182145; 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=m7nyDcqN766l//b/R074sjis25WkIEXiUrR0c7m7ZNo=; b=kciD/OncTTEtcRasHMTTDjV2Zr+1MLdEUh92K5+7hj7y/l3vDRqOlnVgLwioaepFEWqRsW jtWdq1D9Vnam4vSSdq0NZQf1xWvX8q6ydCYmOpHbb/H8cb4bzvaU+7WvC0Y/Z7cyvTDOBV 5lKWZtdXF6Q9sqCnsmp+U/WmCYbqPTk= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf25.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688182145; a=rsa-sha256; cv=none; b=py0ccx2VGEwC8EsDU+k7beUEXP4kDFJ3MquYKsO+k3+dMMPkwTW1TzZgifJ2mcHlRKD4SL xOTPEqLaC3CDS7pdwZ/KD82wgvik+tZGPK5MudVmPntWzStVi5Rfjsyav51ffPd7s6hyjG oahTV9yA1wHRIgcueS7Pk9h3fLE98YM= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QtHh33JcmzTkRs; Sat, 1 Jul 2023 11:28:03 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 1 Jul 2023 11:28:58 +0800 From: Peng Zhang To: , , , CC: , , , ZhangPeng Subject: [PATCH v2 0/2] mm: remove page_rmapping() Date: Sat, 1 Jul 2023 11:28:51 +0800 Message-ID: <20230701032853.258697-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 935C4A0004 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: yeraemh8swix7wnnkk4nrf5hdt7739w4 X-HE-Tag: 1688182144-64916 X-HE-Meta: U2FsdGVkX1/2//Wof8eMtwReleA1k5MKyW2F9izabZx7vE0pdfZbOGjzbtPBRTPvBqzlE2WZRq0jhpkKoopRg44XLekFBUmXxOlCfHMb1kNEUkWmtlYr4hqNpwwI5R4OmDp0qLGzaaFW4ECXKA7tEn/jSjzM47xt7HdU97th4a+CmJbi/olxe/3+ZyQc6BSGn0C1DdzxY7qWsCvSncmWMrglutZjRkmby1MZciB0dFrq/f4p/iRy/f35M6YwNYHtmy8BULPUAS4LYy8eb/fvcb5mGhouCOi0D9GJUSBPDj+Z+a9mETbCPpFYIy9YY1KuT/2eOkqdSZGQaUQiVlqxScHYkSOdKAsqU95kXvzFafskPwGWX//7TY+tKe7M1+p8bIevhEhPRhFBEc1kDaN8avXYAxINwrYEJXq7x2nUSwhoTC4TWz7MgCzP2TWkUBISrQvF0dv2ocXxgdxj+EfJCzz0iHM/5rXaHfZeUT1zFgqbNVpGn4iDxv5WD5HXswGZr21q7hTT+Nt5YOVkmEP3XWkCjYU9BJajbasZABL8zMmt9vr9AwhP2cZsllVoy6cQr1xPjl6kN3iwXiGaJeE3qmk2+IOus4i6ySJ2vng9VmU0HELb/2Nl4mlB41Q23v33aeGlbQohYbCJ7Djs9rTQ/WENSSn784F/LbMZakck06qG2QTAPHJRfRcFLo7VSVY2LJbLfBrgnOad7OFFysHPSX+iVD8RgzzRF5CGaQOO9F5myswKowg/aR+m2FoqCrMHGfJI2Sp76UyXEwGqb/4dB9+CxRJYWW7ucYHobLDY8AnJWV9dixmvtMew3xX0IJP6rfvdmjaaZDSpE8g71IBdVeV079DsE+boa4sZaxhiJn7777UapSpdJB58qdLq1iAZrOqCQ1bNzGcieClixfZgdcfdBuLCli3sFBiJPSAF7QrojphCS3sQ4TXAvqEQaFt6xHW9UPlu3JkzxNzmjxE tQ1Ybevq F5Ldalrwk0244Am/WZiQp4Svb7cmfIA4lEdoWhg87lgmNUnQfgGepExhWF2bKH7yRW8F/7nZxsYQ+Bx4vvcIkF/VfGB7BPlTd1Zla8HgriJWrLWl3pXZ0ZvxUvs2lm7v7qhbEd0WTwgXxp1L42kv5suYSDT12Sp9V6ZMeuOrOPhZaJN1zhVeYw3w+FqWHtb5sU5/h 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: From: ZhangPeng This minor patch series convert fault_dirty_shared_page() to use a folio first, then remove the now-unused page_rmapping(). Change log: v2: - reverse the order of the two patches - add RBs from Sidhartha Kumar - update comment ZhangPeng (2): mm: use a folio in fault_dirty_shared_page() mm: remove page_rmapping() include/linux/mm.h | 1 - mm/memory.c | 16 ++++++++-------- mm/util.c | 6 ------ 3 files changed, 8 insertions(+), 15 deletions(-)