Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22925140rwd; Fri, 30 Jun 2023 14:59:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/RIF9DwSj2lh6oRSkLlLBu7cgg2obt9t3dIwhZdN7CQPNKQLzVxi36RcFerWDAhc7YsGH X-Received: by 2002:a17:902:e5c3:b0:1af:a4f0:bce2 with SMTP id u3-20020a170902e5c300b001afa4f0bce2mr4138091plf.20.1688162363341; Fri, 30 Jun 2023 14:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688162363; cv=none; d=google.com; s=arc-20160816; b=0xaYXYUAewV+yoXzYckjHCe6x0vlQfHodDE4kLW4LT3HhBKvqyKM9v4PC0OMkzahTC rHpd8HDqtgf1W60vCTSxSTnPOQg3BJ73KGfolH3gep8rJBv9jyKen5tQ3ISMI8icdwBS 5WYJCyZr5M4m4rJFIJG88301Ivsk7UKNKn3bUly0+uZaYl6AWB1huQ+N6yMmpfFN6BG6 qpAQwRhpo6Q1aBnOGbh8gSC5eyXZp80Wy3+cUKUVVybK7+Imx0UVk7XljBPq+71RApDq yLbWSdWmAN7kNDeDvrUidZlSDrWqd8lpjHy+PaMzmfmPy0Cxf1oLSgmT4JqdHWAF3w/Z RWeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wQi8kE1utZmoURCigtdOBC8M6Vwy/ecTHFCV8ZmblqA=; fh=kLds1ojIJCjdUiRS+hSvljvmsN9BRlvAt5mLq7LWMv0=; b=We3h7lXQKFo4CNivlpkW6OmEavDQta25w1j4sny+JJEydraQJ6nseZ7sle53GZkye1 SmRaFSQLHazAxF+ECLNCWCD40SZZP3JTXbnfF/u94EhjPRLeo6rGlJSozUxWiQ8sj5ek r1/HFxX+tOtuXxlVXW3a7WvwkBs+YNHKJzXQdzZMkenQshMprdMo97NnDjQ+VuGjkLeJ zY2KypyctBqqWwxCh5zqchj5SvArsYDJWg9I2sUz3fqngybi22mu0GSLub3tNS3PTRyN 8rS1XTFe/3HrhBTzYurpaeVlsrrDlZlIY1IDANv4Q0UUS4ZZS9mbDTuGFhzm0of81A3K mPAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Fau6L1/K"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170902c3cd00b001b045d65af0si4527243plj.76.2023.06.30.14.59.04; Fri, 30 Jun 2023 14:59:23 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Fau6L1/K"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232498AbjF3Vji (ORCPT + 99 others); Fri, 30 Jun 2023 17:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjF3Vjh (ORCPT ); Fri, 30 Jun 2023 17:39:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8C535B6 for ; Fri, 30 Jun 2023 14:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wQi8kE1utZmoURCigtdOBC8M6Vwy/ecTHFCV8ZmblqA=; b=Fau6L1/KFNPruKB7rY1tU73Uiv isB9eLZGKuMwy8IZ/jSht4PywEmTZDXesH/yEHVbQbrRp8MWSazY/j/JzhSohgByM2GD9QoesUNYx uFA8DE84qcdnnAIp4uMlv44kj6NvLDNckUAQHXYyvoB6AjjD6a651BP4KDcCZ3NpCo5oqjrwD5LYM f8+Jw/w6gZ4DjBmR6mQtr+Hqc4JszwRBk+J1DeAmHKVCT2/G8RR5+O6rgn5dP2pCT6u1Pvm3HsyX9 ovweEVVEaU/4KKUjSuQvD2LDVhAx9uS/kp9kh6jo/JFQmH5rDarmuuYmzQKB/DrJT6J5aRQjQ/kBw m00ZidjA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qFLpu-0062Mp-Tz; Fri, 30 Jun 2023 21:39:26 +0000 Date: Fri, 30 Jun 2023 22:39:26 +0100 From: Matthew Wilcox To: Peng Zhang Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, sidhartha.kumar@oracle.com, akpm@linux-foundation.org, wangkefeng.wang@huawei.com, sunnanyong@huawei.com Subject: Re: [PATCH 0/2] mm: remove page_rmapping() Message-ID: References: <20230630121310.165700-1-zhangpeng362@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630121310.165700-1-zhangpeng362@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 30, 2023 at 08:13:08PM +0800, Peng Zhang wrote: > From: ZhangPeng > > 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".