From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C50CAC77B7A for ; Fri, 2 Jun 2023 03:18:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233162AbjFBDSS (ORCPT ); Thu, 1 Jun 2023 23:18:18 -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 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.