Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1660226rwd; Thu, 1 Jun 2023 20:31:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qMt0rLuyR7G4vJVe3/DMUARtYE+Lfg0HbxBGoRIxNy/9ROuxY5KIMOdHNMa7kzgxXfYYR X-Received: by 2002:a17:902:db04:b0:1b1:99c9:8cfa with SMTP id m4-20020a170902db0400b001b199c98cfamr1517516plx.14.1685676706078; Thu, 01 Jun 2023 20:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685676706; cv=none; d=google.com; s=arc-20160816; b=WkuzAhCo/uSoUjyLNrKzOpD4BAKZnsdiRmr5hQjmmDjSgtTGONMWb2V3swRlA1S8N4 9GF1rGB+v/LKCUenMHkmsPbQADf2AZU4U2DhMs4UohZaAYO5KiVvUMjz2b62j9ob84iJ CNQMT2LqJ2gN3pV4l6u2cfbE0KCQLQe/crw0vihawrVa1hrPKvLW68ac8LRjRr7Y6bHD vZWnPPPhFN+ZeZf0JuBp+v0UAqCQC8ES7zU3rWM7gWBt4DfdQzeq6XCSKi+sYAEigaGp bfnvHZJDcda6rrDQ13wAXM4rofL+Ka5+/KA9Si+P5X1chblExMI6A97M2NB7AEJ6qn7w c8oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=nsI8nkSdsUMlq9WnVDt4XHE6Ly9J8R9FU6lPfDlDbxI=; b=vYK/bEsyQsK6UXhEba+zNFt8TDWbjQybwykpPEgGTzBoXp/mi9m3a8MUP+9sT84F3/ LcR6PU4RqGWRFU3evOIVLkNqG4wnvreekbo+VaIw1zjEQoFCKJSSYy3vypWQ6ViXyfSY WqltzaiiWLJHt4zX9pX7E5tNOk6JNheBzBLTSFip16OBb/66SBTbHvs/haRB+CqNT9Mu bb0bnMYC3ngGe8o18qI+TcFoELYZ0BwSwyPDIvksHApxYS2JnnyPAre57TPAO8MDQ4aU CPkh6oFo+n024ddBvBrQruGqQx9+lMz0thJsuYvlGxsQiuhAu2WyM/DY7dSYmaFybeGH cBWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YPYjXMN7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170903018500b001b1be13a751si224933plg.66.2023.06.01.20.31.34; Thu, 01 Jun 2023 20:31:46 -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=@linux.dev header.s=key1 header.b=YPYjXMN7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbjFBDPe (ORCPT + 99 others); Thu, 1 Jun 2023 23:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbjFBDPc (ORCPT ); Thu, 1 Jun 2023 23:15:32 -0400 Received: from out-33.mta1.migadu.com (out-33.mta1.migadu.com [95.215.58.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11A0D136 for ; Thu, 1 Jun 2023 20:15:29 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1685675726; h=from:from: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:in-reply-to:references:references; bh=nsI8nkSdsUMlq9WnVDt4XHE6Ly9J8R9FU6lPfDlDbxI=; b=YPYjXMN78ab4uNsuydYY12vCvXYLvObh7U09Zwz/4lhwCN2m0hzqA4k7Sb+EZyMHidyTUs 4L9xe33GOWqpHN1pwEcTA01LBkOGBU+HdbDPwaS4iHmspfoERzE5JsFMQvhm+Jqf8s3P8H 4tVAUTASy8PqGRcHmy7fqxVPhAxrIQg= MIME-Version: 1.0 Subject: Re: [PATCH 1/2] mm/hugetlb: Use a folio in copy_hugetlb_page_range() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230602015408.376149-2-zhangpeng362@huawei.com> Date: Fri, 2 Jun 2023 11:14:46 +0800 Cc: Linux Memory Management List , linux-kernel@vger.kernel.org, Andrew Morton , Matthew Wilcox , mike.kravetz@oracle.com, sidhartha.kumar@oracle.com, vishal.moola@gmail.com, wangkefeng.wang@huawei.com, sunnanyong@huawei.com Content-Transfer-Encoding: 7bit Message-Id: <4D9E2D77-1A94-4A55-843F-C26142666479@linux.dev> References: <20230602015408.376149-1-zhangpeng362@huawei.com> <20230602015408.376149-2-zhangpeng362@huawei.com> To: Peng Zhang X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 Jun 2, 2023, at 09:54, Peng Zhang wrote: > > From: ZhangPeng > > We can replace five implict calls to compound_head() with one by using > pte_folio. However, we still need to keep ptepage because we need to know > which page in the folio we are copying. > > Suggested-by: Matthew Wilcox (Oracle) > Signed-off-by: ZhangPeng Reviewed-by: Muchun Song Thanks.