Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp305908rdb; Tue, 16 Jan 2024 00:10:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGg//WOgxY/6FnNlMnVNBiwxhcs9q/VE4LTUPWO3ephuSiwhPKeHkc1GjBulbjimP3C2NR X-Received: by 2002:a05:6214:ccb:b0:67f:6b08:ec2e with SMTP id 11-20020a0562140ccb00b0067f6b08ec2emr8738688qvx.61.1705392624463; Tue, 16 Jan 2024 00:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705392624; cv=none; d=google.com; s=arc-20160816; b=duCuOGzjscHdunP2/Ks5gMEd5Aj9rC4lwUM1qC6VSbUEn2/jXJgylLujk3ExYFI4pS 0BpsfemIuzMv0xt6QeyytZ09P1gEPFVP5KKE31RQ4ILTQVjrClXe/9lILTSauxEicaET NIsbysMbx09jm4hh7WjCQkq4DDd8zvodRcWdKCtRuz6ro836JVZKeAKWQXAO5ven38Hi A6aDT0k4HFT3wog+sypZ3kUEHJitWon/f9Tffu+zAmBbI3dI911mmrOM8lc0xOog+Czl fxVRzGHAxRIKNFFA4gL5ScIBxmtQ/0Vztia+u1NC+BgwAFPKYe1VuQYDCTY9S4VMw1Sz fROw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=stmod4gMLQl5awDuuOKkSLLgiRIpKv0xEIhh1LQdtmg=; fh=b0K+0FiVHi//NC4/RUQyZmFRBmQ5vZZ4FMQhGyTG3fU=; b=xMie0diFRltgDLM41BjiihvroFwDh2E7FtOSUA+rgpCBXWA046Ro6AE6ZsREE5gdFc FK5GjvO0jS/JV3zAIsgBrIkefJYzVsCCcMOnNEQ73KH8gsr4Jj/YVSEZDVGZa6EKOYzP 8vlf8QGT9OiTcNhan6rmrAyrua7pal3kTc0JVjcxMxTbz1flo2esOeqq/ww/zKm7hgKc goArXJ56s6cA+sctzOBf7jDNN2E+Zh94fObMhum7f6IG2DQMyHzkzTLUSF2D35G1iVY7 uFH5RGrz6+j6p2Qeg1QSxVdt5Sm8mc5q3AUsPEjOD2/YVO6gdLu0IsWXLzjC63lBYYeF DUDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Zgxj1qBV; spf=pass (google.com: domain of linux-kernel+bounces-27115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e18-20020ac85dd2000000b004299897955dsi9475397qtx.686.2024.01.16.00.10.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 00:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Zgxj1qBV; spf=pass (google.com: domain of linux-kernel+bounces-27115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 127281C2087F for ; Tue, 16 Jan 2024 08:10:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9FA911717; Tue, 16 Jan 2024 08:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Zgxj1qBV" Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56E2F11701 for ; Tue, 16 Jan 2024 08:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705392593; 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=stmod4gMLQl5awDuuOKkSLLgiRIpKv0xEIhh1LQdtmg=; b=Zgxj1qBVWiqbB1I1nOZrqaiMvlvXAEAGehrdmZHerqFa3IsyBcM61rTo7Ag8rb6mul+rrD O3kJxh5BdL9NLy7C+EcrZKmJN3nIn25Etp+ojp9GCIw5kKAHBLEItGmz14dX+vJBQ1LYjF nAKuTEUxVFegTtOl8yA2zv47pMRFCIg= Date: Tue, 16 Jan 2024 16:09:42 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 2/7] hugetlb: split hugetlb_hstate_alloc_pages Content-Language: en-US To: Muchun Song Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , David Rientjes , Mike Kravetz , Andrew Morton , Tim Chen , ligang.bdlg@bytedance.com, Gang Li References: <20240102131249.76622-1-gang.li@linux.dev> <20240102131249.76622-3-gang.li@linux.dev> <2ae5ec3f-4a96-4819-af65-5f04df0c2ebd@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Gang Li In-Reply-To: <2ae5ec3f-4a96-4819-af65-5f04df0c2ebd@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2024/1/16 15:02, Muchun Song wrote: > On 2024/1/2 21:12, Gang Li wrote: >> hugetlb_hstate_alloc_pages_gigantic(struct hstate *h) > > The name is so long, how about hugetlb_gigantic_pages_alloc_boot? > >> hugetlb_hstate_alloc_pages_non_gigantic(struct hstate *h) > > hugetlb_pages_alloc_boot? LGTM. > It it unnecessary to reverse the condition. A little sime like following: > > if (hstate_is_gigantic(h)) > /* gigantic pages */ > else > /* normal pages */ Will take it in next version.