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 BA4E4C83F11 for ; Mon, 28 Aug 2023 07:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbjH1HQb (ORCPT ); Mon, 28 Aug 2023 03:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjH1HQT (ORCPT ); Mon, 28 Aug 2023 03:16:19 -0400 Received: from out-248.mta1.migadu.com (out-248.mta1.migadu.com [95.215.58.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B13139 for ; Mon, 28 Aug 2023 00:16:10 -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=1693206969; 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=ea3oJojfHwYhg/cah6p3oZm1twpvjQ6dlwY+OIn4Srk=; b=UVbI66/qKVdEmeAVCoKGswbLzkvWdcdpCEDlNWN0G2s7DtDg0Si1KNkza71j4IE+FaNSJN xCGP/SSOXcHOoLTA/ExQDA3NHQf8445cgKbcJHqQrOVIuGccwXlbtJ1NUQYrbcAlBow3GW /znAvrd/G4DyATPrrLdQ3zoRb8LgF28= Mime-Version: 1.0 Subject: Re: [v3 1/4] mm: hugetlb_vmemmap: Use nid of the head page to reallocate it X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230825111836.1715308-2-usama.arif@bytedance.com> Date: Mon, 28 Aug 2023 15:15:27 +0800 Cc: Linux-MM , Mike Kravetz , Mike Rapoport , LKML , Muchun Song , fam.zheng@bytedance.com, liangma@liangbit.com, punit.agrawal@bytedance.com Content-Transfer-Encoding: 7bit Message-Id: <4BE9BCF9-AD29-484B-BBB0-3709B77E2236@linux.dev> References: <20230825111836.1715308-1-usama.arif@bytedance.com> <20230825111836.1715308-2-usama.arif@bytedance.com> To: Usama Arif X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 25, 2023, at 19:18, Usama Arif wrote: > > If tail page prep and initialization is skipped, then the "start" > page will not contain the correct nid. Use the nid from first > vmemap page. > > Signed-off-by: Usama Arif Make sense even if without your optimization. Because the nid is used for allocation for "reuse" page, it really should be extracted from "reuse" page instead of "start" page. Reviewed-by: Muchun Song