Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24307490rwd; Sat, 1 Jul 2023 17:25:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGF3cCgbbpgcoHkKdFK66jqUMvynRj0pYKVHfZvoJ1A5cjSI6sEzhMer91aJpv5QM8sjeAx X-Received: by 2002:a17:902:e548:b0:1b5:25f8:2160 with SMTP id n8-20020a170902e54800b001b525f82160mr7622153plf.30.1688257506241; Sat, 01 Jul 2023 17:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688257506; cv=none; d=google.com; s=arc-20160816; b=Zq9op6b0/hWM+EVn16IztL4Y4UtcFdzZQc1QIwai+JQVbqbNQeS/bVpEYRwRNJoVij Xh/ujJm02N935d5Z8921syWbye7dRep2B7aHdNCijAT+plcy5XNABOhXeMX5/eQTbo9Q fXrJSH1W/tlxI+LWhKL0BM95Xd/IwoYW2KaLOAuWte3lb8Ur1plqqB9r5XO0SrPYXZiC jmEA25friLCDA+LXwD1LrIKQUQNAL6Xk83O9yct6vBdE2fvlL8UEMH5OGxQF74T6B4HD A+jWvNlA77pML45CxYuF4ggoAHhzveYemLZFEwFBf/5EyuWHYmpl6XT1oHmP5Z7fB4qg vLWw== 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=Cnx5nn2JwPvpg5UMJc1N/dgf7g9fBF/GD3b8oqGdO5A=; fh=kLds1ojIJCjdUiRS+hSvljvmsN9BRlvAt5mLq7LWMv0=; b=UA8J5lsIFPXluAgu2NqwfFYveOQmg2UzsYuXcygKAjHsnX3PwaUC3GN547tIk0Jbqi Iu4ffbu7GRFotNGx9oI/D00Ts7K0RFHcxB6hDPxr9QpL8+Pdn4sbET98tQNyTN9jlBJn kM6nfYCchZ5RtPADK9zafewaAUTErOFe1KWRJUAZq22Ot5vgKL6800/rJ6tg86185QaY QdN+l3srG8hWpKsmD1dA8QlrPxcxahuUHffqNfePkYkI8U+mm9UH2IuX22VYAeK7UpjR BLj4LqW4xY+Y1C6AuSa9nrFxNdKF2tTCFEdQL6qoeBxoWw9134MNDGlchvrbrCDDWwdI 6Kdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m2lI0Tz+; 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 x1-20020a170902820100b001b67bdc438csi14800495pln.376.2023.07.01.17.24.54; Sat, 01 Jul 2023 17:25:06 -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=m2lI0Tz+; 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 S229914AbjGBABm (ORCPT + 99 others); Sat, 1 Jul 2023 20:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjGBABl (ORCPT ); Sat, 1 Jul 2023 20:01:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47651725 for ; Sat, 1 Jul 2023 17:01:39 -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=Cnx5nn2JwPvpg5UMJc1N/dgf7g9fBF/GD3b8oqGdO5A=; b=m2lI0Tz+C3i30o2JIf8Yu3ahe4 R3W/cUL28h2U9lVdDTgNcq7WhbeV0XXBM/wsOGU5qgYp46iVvMhQ2Lz5qRVaTeqWNAzu634BFIZsA +qLKljuBru0Vjr4ExYtaCrBc7GDiFAvg0kUANxfVY5TBBEzhb2mZzZC69IhWEZrAL4eFktLLrHHML Aztq/ztGccPOlZOTPKMaMzmzfKkI23Oil0iXPfhiz+m9tviH2+7P2QQ0x1NMrDgbZRi8XdIv2lYDG ZM72j/TLbacSQ9IGQaO7YWxdwioaHRPREoHgrrD5zxjujnPiQjzq9i9I9VonsZxM92lW+55RofM0h Wmvq7Kxw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qFkWx-006xiH-Vl; Sun, 02 Jul 2023 00:01:32 +0000 Date: Sun, 2 Jul 2023 01:01:31 +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 v2 1/2] mm: use a folio in fault_dirty_shared_page() Message-ID: References: <20230701032853.258697-1-zhangpeng362@huawei.com> <20230701032853.258697-2-zhangpeng362@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230701032853.258697-2-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 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 Sat, Jul 01, 2023 at 11:28:52AM +0800, Peng Zhang wrote: > From: ZhangPeng > > We can replace four implicit calls to compound_head() with one by using > folio. > > Signed-off-by: ZhangPeng > Reviewed-by: Sidhartha Kumar Reviewed-by: Matthew Wilcox (Oracle)