Message ID | 20230630121310.165700-1-zhangpeng362@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10314253vqr; Fri, 30 Jun 2023 05:16:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69gcVtRnnqn2yRoMgU6aHrch1ENrzRN3ZJ+r45GufulTJC0uCSZNBWRo4hPkVhdhp7Fts+ X-Received: by 2002:a05:6a21:33a9:b0:12d:5b6:7b32 with SMTP id yy41-20020a056a2133a900b0012d05b67b32mr2376205pzb.3.1688127409612; Fri, 30 Jun 2023 05:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688127409; cv=none; d=google.com; s=arc-20160816; b=T1WxX/IppXS5FLSMCmAcuqMxzdqGuMi4MQBbDJPZYmCqf44UXnu4HJgQLMt0LU/MOJ 4LPPuCw+C/xEtC+8wwHUanFEjx763KPkqtPpRiMLpH0ifCz04H5JBly5QzdEcbC7bjJX 8l4p365MBT71okB3Cc+BF3FrZwWycL1zEWBrEpbMTuxSMob+GZ8aWYZ8yL4Q7/XjykFs +D1ZXOVEXfFUkgFO1v5KIKVAyWt7RqrUqN48VOzKXqa369hAnVJ+WA/fkMGle1T9555u GWWlWKjH2QwYdNZMVPk0biqvTwuIVqJuqvmo1gYeB37kMlvQPjDP/Zhs0s5Jz9BMHl4A 3yVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=C3iCC69vHhADCmFRCU6mbjfQ7LWJ5YMmCsn7QUoKnx4=; fh=JTrvrbGtYtGElJnl173AUP1Npy20iXcoXGS/wWbJpCA=; b=HPGd9SwmeJtQu62Lo0UlEhE7L5vmRccI3arH2p81m6aEym3iQYNM4nFYM9szaG13lK d3RtVAg5tKtNPi1aQQwWdyl5hJdSirIKhnQY4aEqVOp7dAWirHcnSU2NjHrMnlXDukeU LnItHaZYFWL7UJTIDO37vL1/TomeUOiUSfMh0jyU+LJRhqKTqli8nlUxq0NSB0FlvPkY ylX41TAA/wFVyoaQjs1JM3X/D20RhOV183JdlABD/oqf3csGTjAHtkE9iQ2g8EH8BuIY liSgpcSowmyM3Er+5sFH3s9ea2WuL4ZpApLO41NiOgBy1DwP5gdU4qS+ev7fZBgjSiix GapA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fc9-20020a056a002e0900b0066a1f3a9190si12507674pfb.207.2023.06.30.05.16.35; Fri, 30 Jun 2023 05:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232480AbjF3MN2 (ORCPT <rfc822;nicolai.engesland@gmail.com> + 99 others); Fri, 30 Jun 2023 08:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbjF3MNZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 30 Jun 2023 08:13:25 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DFEE130 for <linux-kernel@vger.kernel.org>; Fri, 30 Jun 2023 05:13:24 -0700 (PDT) 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 <zhangpeng362@huawei.com> To: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: <willy@infradead.org>, <sidhartha.kumar@oracle.com>, <akpm@linux-foundation.org>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, ZhangPeng <zhangpeng362@huawei.com> 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770129886195000944?= X-GMAIL-MSGID: =?utf-8?q?1770129886195000944?= |
Series |
mm: remove page_rmapping()
|
|
Message
zhangpeng (AS)
June 30, 2023, 12:13 p.m. UTC
From: ZhangPeng <zhangpeng362@huawei.com>
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(-)
Comments
On Fri, Jun 30, 2023 at 08:13:08PM +0800, Peng Zhang wrote: > From: ZhangPeng <zhangpeng362@huawei.com> > > This minor patch series remove page_rmapping() and convert the last user > fault_dirty_shared_page() to use a folio. This patch series works better if you do it in the other order. First convert the user, then remove the now-unused page_rmapping(). It's almost always a mistake to start with "I want to remove all the users of API x". You should be thinking "Here is function y that still uses pages; I shall convert it to use folios".
On 2023/7/1 5:39, Matthew Wilcox wrote: > On Fri, Jun 30, 2023 at 08:13:08PM +0800, Peng Zhang wrote: >> From: ZhangPeng <zhangpeng362@huawei.com> >> >> This minor patch series remove page_rmapping() and convert the last user >> fault_dirty_shared_page() to use a folio. > This patch series works better if you do it in the other order. > First convert the user, then remove the now-unused page_rmapping(). > > It's almost always a mistake to start with "I want to remove all the > users of API x". You should be thinking "Here is function y that still > uses pages; I shall convert it to use folios". Thanks for your feedback. I'll reverse the order of the two patches. Convert user first, then remove the now-unused page_rmapping(). Best Regards, Peng