Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1659411rwd; Thu, 1 Jun 2023 20:30:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68TS0NQM5BsgatXuOLHwI3YFzp37d0z1En8j2Far318/7uiV3mlVYvLu/LJZQh3ijPPHB5 X-Received: by 2002:a05:6214:242d:b0:626:24c4:7d91 with SMTP id gy13-20020a056214242d00b0062624c47d91mr14952146qvb.26.1685676641329; Thu, 01 Jun 2023 20:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685676641; cv=none; d=google.com; s=arc-20160816; b=Bdd6ejoSJcf0GHUXEvtZPjRWTrpCFS+5RXHTZB0T+zmHZ1/Z9uWwrpYxHQwpDMzadR 7g1t/hFsUn0rohW7k5mam8CJQgGMwUZvTGDk77fj5898/HcvQAmBHgsFnin4/X+o0LCg ggGlXwTUE75IoDEYOFssFFD7gc3W8Llo9mPtqw0qP756WTbdgPyemgJCdggLVjBfYo1z K0DsfFaVeRLcvYc4yX3OfnPz+GdFKJkjBqn2AxlzZAeuFfEDFEQBAHPRT/IfAekj3ryp ilXOb1/0To1w+xKxFSO2tU1ORqc/1fzPS84iKFkpWz3+5DkuJFE4WZjGTBK5oCbaCp73 lbTg== 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=RVa/3tWBo7x4wAS9GPo07k54J8/Q1k7JUh36kvZ5aPk=; b=MvHmYIKtuWm9Che8YGH57V0Q9LHAGyqtpvbmUwqZTbzqeyRydf/Tw4H2QToXXykv/O BwoYENOvDU07gQbhX5wQaRgNn8/lj3RdpQZzOgOckInd9MaHetHWTaX24VOUUQIsDySb v4XQUWOAg3RjUUcTOU3/BTXO2tIoswBrLPxrLWgTWG9SvbeFXNa2cN6uqIK8gedMcCCV JDdHt6Z8Tj5/3p/kCmvP0J25o5M6H01U2yUKn2yCKNFSWHMEAJVyh6vPRHKLi6OzCotl T8McK/YIDYtQJAHZYBnkflBICscOm7GftR9E8NXpvOXnxYmo6KWvQS/9F77LjgEX2lPZ Ouvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qfGwXrsv; 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.30.29; Thu, 01 Jun 2023 20:30:41 -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=qfGwXrsv; 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 S232839AbjFBDSR (ORCPT + 99 others); Thu, 1 Jun 2023 23:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbjFBDSP (ORCPT ); Thu, 1 Jun 2023 23:18:15 -0400 Received: from out-13.mta0.migadu.com (out-13.mta0.migadu.com [91.218.175.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 982A5107 for ; Thu, 1 Jun 2023 20:18:14 -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=1685675893; 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=RVa/3tWBo7x4wAS9GPo07k54J8/Q1k7JUh36kvZ5aPk=; b=qfGwXrsvxj2Z0dxz/kHAxmCkOpCpFsMfqlx/WscZXXr3++gp9y2Z1J0WNXXWZOimsdSlXi T8vFvH4zGVcySfcuQO4FAiqDXilFjRhzgyTNWHKu5joGW8p3K7AD/DZxMSt3+P+dXxgtzY C9znm/N0G/V/4AbiRt3zR3ivYmlmo+0= MIME-Version: 1.0 Subject: Re: [PATCH 2/2] mm/hugetlb: Use a folio in hugetlb_wp() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230602015408.376149-3-zhangpeng362@huawei.com> Date: Fri, 2 Jun 2023 11:17:33 +0800 Cc: Linux Memory Management List , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, willy@infradead.org, 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: References: <20230602015408.376149-1-zhangpeng362@huawei.com> <20230602015408.376149-3-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 nine implict calls to compound_head() with one by using > old_folio. However, we still need to keep old_page 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.