From patchwork Fri Jun 30 12:13:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Zhang X-Patchwork-Id: 13298110 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 D9BE4EB64DC for ; Fri, 30 Jun 2023 12:13:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 733DF8D0011; Fri, 30 Jun 2023 08:13:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6961E8D0001; Fri, 30 Jun 2023 08:13:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3D6E28D0011; Fri, 30 Jun 2023 08:13:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 288E58D0001 for ; Fri, 30 Jun 2023 08:13:31 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id BE04A120DAD for ; Fri, 30 Jun 2023 12:13:30 +0000 (UTC) X-FDA: 80959304580.17.8902878 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf18.hostedemail.com (Postfix) with ESMTP id A9D1F1C001E for ; Fri, 30 Jun 2023 12:13:26 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf18.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=1688127209; 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=C3iCC69vHhADCmFRCU6mbjfQ7LWJ5YMmCsn7QUoKnx4=; b=vIsJvlvaT9TD6mC2uL2ojC30a6BYpsopBpPjEgdN+66iZ+30N+j9hf7eJaa9dW3nPcK3o5 jaHDv5r8xf63ZFUsls5lciKRGXZdJhDgS65DJzdAeoVwdHiQn5Gn4+RIioT4OJ+2RuqeKV 9VPvh1rJyepC4CQ2Y8YOfG9p/fUf8zM= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf18.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=1688127209; a=rsa-sha256; cv=none; b=v7KCSfyH4cKwZ/NjPmMPsYZ77oG9sUUbW21qUMpVsyicUOukCCEeR7QpXibA/UKrhVNqlr Q0lWeh33e0edli3DUNmn1D2cgveOrAAjtCBmxV1HRSsfYi8QDHTZ5ERKLTGQqWhUfCx+oP 4mBLpP6jMdRnpa3gXGoJeWKvF733qvs= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QsvJx2YdjzMq79; Fri, 30 Jun 2023 20:10:09 +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; Fri, 30 Jun 2023 20:13:20 +0800 From: Peng Zhang To: , CC: , , , , , ZhangPeng Subject: [PATCH 0/2] mm: remove page_rmapping() Date: Fri, 30 Jun 2023 20:13:08 +0800 Message-ID: <20230630121310.165700-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: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: A9D1F1C001E X-Stat-Signature: oxnq9sri4d6w8x8ofn1xxgdm3n4ro564 X-Rspam-User: X-HE-Tag: 1688127206-610200 X-HE-Meta: U2FsdGVkX1+QIM+4eq0Ximsm440fR/hxT54UfjLN1BRwvMNQ6u56I8S9xua2gSXSzvzkq1dP+TX4qNfuywbrMf4AqayFwTUJQ7t0FgklMK/uMvkpnNmgCSd6FgXnd1J019KdDL84EKPt93zg5Sf/nDmxgi6020GO6kT6yMwaUPjcF+eqnN5fnGRl1bMyKzNZloNEjty9vFT2gxqAcIU/RLUuDJ1Wfj4VHKn6aNCnW3/ElvTO55catO22C3Z///QAxZkCZBjDkoZfZKE7HHygQfy/zyW3JksVpI2H8HJdF5CN52YYRuOEjM2S8O9+o3mLPjRoI4eQ+CHxAhIjNw45n0cUL/PpHXifqHZRMMI1wIE895gisrEC2oEJXjm2HgFAU0Fq0IBC12i5zW8LQI+cEbUB8y7K4TQWbY8oB6myVQpsZJswtgdu7xBiXusCLE9k3jjbMhZFgMLaUYdGFLQknvbe2/qXuvYR+ZYj51jzwyelZQvdFxF9IzXSESWiezZeNV1jx+k4RCMckv1SV6R8ShfPSLmIhFMYbg8tuY4oQMjDOznf8KueRWiFYnCHY4Xrfkg1oWBxHSo+Qg7TvEuzaWJ7GwqhQUB+95zxWTmF0rqZbhMZVscEv9hbHj7LyATwEUznZ4RXyRUScMxSUSXwojrL+syfeEf9aRXpxfQ3ZHnUfcChNvGcXGQXCwTDCtwaD+TQrd7B1t9VNkQMqxWHiLWPf8b8GGSQiudl4rfuqX10vr3+d28PzfPKKr8ejjVM4wzJR0M47wck8/JUnJf9DmxNdCvFdXhWqcY2hVxvORpuKPhIBtkgT6r74Vxd9UmmTSnbthGoynT2wWMK4jdslHtpwk2bVhJ0WTGD1UPaJWV6sw5zfNgo6tG6g69eeY5QR4GBK+GPPa/tQoRLoEimSA91ZMWbZrHvNO9ukG6mHiWkmjz4/0lJ0iVcmRwtEHMm5Q8Cv9bgZR+YAxdsACz EClK5TvB vayzP/tml7dodC3WrUigIuChY0F3MQmFYcv1xHM4O1NGDVd94bXHVL4Sgx/yMR0N8p1xfbcGXu11fha+HIHS/7xWbvFIFBrKO9TlOKbIgXTMTfCKLl21SeEFPyH7+peEE01RtrxiK0Dhf/MKFS7uJcvfvENyAZSgZI8RX04cmBkkUG9ttI1/XTe1jr3UqkjGjT319 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 remove page_rmapping() and convert the last user fault_dirty_shared_page() to use a folio. ZhangPeng (2): mm: remove page_rmapping() mm: use a folio in fault_dirty_shared_page() include/linux/mm.h | 1 - mm/memory.c | 10 +++++----- mm/util.c | 6 ------ 3 files changed, 5 insertions(+), 12 deletions(-)