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 3D20FEB64DA for ; Mon, 10 Jul 2023 07:57:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232386AbjGJH51 (ORCPT ); Mon, 10 Jul 2023 03:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbjGJH5M (ORCPT ); Mon, 10 Jul 2023 03:57:12 -0400 Received: from out-48.mta1.migadu.com (out-48.mta1.migadu.com [95.215.58.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66459118 for ; Mon, 10 Jul 2023 00:57:10 -0700 (PDT) Date: Mon, 10 Jul 2023 16:57:04 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1688975828; 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: in-reply-to:in-reply-to:references:references; bh=n9tuM7x7sdkdTz1vJuUWwSMpjbCUd7FrZF1yh268yhM=; b=HflLwFauEDFPndjysCLabIEEsHbQpnehHxmYPP0myQD0ct6d70W1KoHzVx7L20bwAftfH4 h4ZF72qp29qNtmRVdyFQAZGZeIetkwvdjBh5qr6zBDMJAmE61/+CG60fMzzp1LHQ+QvtNt xsan+4s/bmzykUn28s3YJ3ZK6f5bQ9o= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Miaohe Lin Cc: akpm@linux-foundation.org, naoya.horiguchi@nec.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/8] mm: memory-failure: use local variable huge to check hugetlb page Message-ID: <20230710075704.GD1686200@ik1-406-35019.vs.sakura.ne.jp> References: <20230708085744.3599311-1-linmiaohe@huawei.com> <20230708085744.3599311-5-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230708085744.3599311-5-linmiaohe@huawei.com> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 08, 2023 at 04:57:40PM +0800, Miaohe Lin wrote: > Use local variable huge to check whether page is hugetlb page to avoid > calling PageHuge() multiple times to save cpu cycles. PageHuge() will > be stable while extra page refcnt is held. > > Signed-off-by: Miaohe Lin Acked-by: Naoya Horiguchi