Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp736848lqo; Thu, 16 May 2024 23:02:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyF3rnEhqtjuEMx2G2WLV9OurmkewYIA0CFNe2YQW7yc5d+pS6/QyosEuExh0FiZW7R0vwYNm22OwVa6nUXscFKS7FEWoIv8+Wakw74A== X-Google-Smtp-Source: AGHT+IGO7sbjqZgStIeOxaSDDqOrzJlLsrA/jEZVFWM947KvrrUXlft3t1swWMXCiHpEpmFdtSP7 X-Received: by 2002:a17:903:2286:b0:1ed:c526:c93f with SMTP id d9443c01a7336-1ef4404a1damr272106605ad.42.1715925778598; Thu, 16 May 2024 23:02:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715925778; cv=pass; d=google.com; s=arc-20160816; b=oWXW8KK3xDQRMnZafQSiqIZTHNILv1X/5whx0Wb0usL4sLe9q+QFlFa4sEQboywvDE 59bMqvwz7Fs2Ake52cNnv4Z3f55A7SoVOzHi7oO77H8hj/JBfJCd/c0mWVIypmbWXq7m vVTQItsCO5bjlc18Ck4N02bQT2RGlBVOmjj5rtaiF4C6hEHtEBsmeAX0Vy9QzHKvvgaG e+wGf7L6sVxryluSwmOQMzh8EVsJOWWXLFtRlYdjCd1gFBqKHRNnqRsdhY3xu6j/BS0I PHc+l8RWEAUlX5mUfWp0o1JlVSOn4uzrxliUqxVKf1tRRW9OILIEalKietbEljCEZ4x9 fNuA== ARC-Message-Signature: i=2; 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:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=hbfDHWJNEW9HvuPDjSMmNF8ov3t3borLcg64UT809XI=; fh=DTQKWhpCBXcA+ZDNUq3ZPDug2nuZhJbgR0ad7QdFR+s=; b=UkL5uTP46cowjKa+uED/ah4D/BsmHpyTmHaR/YNTYmw0fm/fLNGhrpTF1ZPA47+LaX Y7tcP/3IAB0NgLcu+YnMtxJOGwfSdhdDcH2bmgKSDyrQelPKovGBob/v+CgIG7sg/eWR fZTqZ5qEhbepEaxRi0Sw7crc0O4jbmFzVf9LNRRIwNA3K0Xs9gn/o2+gNyvg1WMchPiR kfsmMgS+7gWAmfQWvur65JHLanMAJafHpv+1EKTYFu7bH9AMnk3zPWsrm6xELmsJqcYj pTx5jekPnMK2qJp8pEk3ehtHblgcLRPjG8dBSFWLN6pbcO8lfGByh2Gk6zrRBvd7Lg7S Tr1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-181755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9cf96bsi164499385ad.3.2024.05.16.23.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 23:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-181755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D033282F8A for ; Fri, 17 May 2024 06:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 539ED125C7; Fri, 17 May 2024 06:02:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE3231119B for ; Fri, 17 May 2024 06:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715925771; cv=none; b=Au5Fjn5kJqk10j9deGVneUjWxsI5NXIIdjhEn2pErXZTuEMd9ZCwemoECIio6WLmGw7NR4A1XLhdg3/mSNcEJxXVikuGLp595f/nKZZ/kHswwY5MQq2meAfTgdUDK/i9DtVynxMnQxi2Ry5jWUXiC9WD0uKxOPrmubfyPY6u+DA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715925771; c=relaxed/simple; bh=pkX+Pnt4ltKFyu8YyzgBROHZsxF/xcflOw+kJZgsD7s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RpPxxmmFPa1ePNm6V1hPyfsCx8s9vHJhtVZF7Em7bQM+Kk2/V097Xf3X0GT34bi0JCVkbjvOrD11zt/cbR36PSOdLGE4srBI/AokhuWBRzpSA8ej2IMLOVOm/2T3mPA0pl5kt0oXe34WnDE4p5u3/VB2CbeOpNKDU0+MV3rGbTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5D3101424; Thu, 16 May 2024 23:03:08 -0700 (PDT) Received: from [10.163.37.42] (unknown [10.163.37.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 603833F762; Thu, 16 May 2024 23:02:42 -0700 (PDT) Message-ID: <71b08fe0-277b-451e-868f-1d81e1b3e810@arm.com> Date: Fri, 17 May 2024 11:32:56 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm/hugetlb: Drop node_alloc_noretry from alloc_fresh_hugetlb_folio Content-Language: en-US To: Oscar Salvador , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Muchun Song , Peter Xu References: <20240516081035.5651-1-osalvador@suse.de> From: Anshuman Khandual In-Reply-To: <20240516081035.5651-1-osalvador@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/16/24 13:40, Oscar Salvador wrote: > Since commit d67e32f26713 ("hugetlb: restructure pool allocations"), > the parameter node_alloc_noretry from alloc_fresh_hugetlb_folio() > is not used, so drop it. > > Signed-off-by: Oscar Salvador > --- > mm/hugetlb.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 6be78e7d4f6e..fedce00ff839 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -2289,13 +2289,11 @@ static struct folio *only_alloc_fresh_hugetlb_folio(struct hstate *h, > * pages is zero. > */ > static struct folio *alloc_fresh_hugetlb_folio(struct hstate *h, > - gfp_t gfp_mask, int nid, nodemask_t *nmask, > - nodemask_t *node_alloc_noretry) > + gfp_t gfp_mask, int nid, nodemask_t *nmask) > { > struct folio *folio; > > - folio = __alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask, > - node_alloc_noretry); > + folio = __alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask, NULL); > if (!folio) > return NULL; > > @@ -2513,7 +2511,7 @@ static struct folio *alloc_surplus_hugetlb_folio(struct hstate *h, > goto out_unlock; > spin_unlock_irq(&hugetlb_lock); > > - folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask, NULL); > + folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask); > if (!folio) > return NULL; > > @@ -2549,7 +2547,7 @@ static struct folio *alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_mas > if (hstate_is_gigantic(h)) > return NULL; > > - folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask, NULL); > + folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask); > if (!folio) > return NULL; > > @@ -3474,7 +3472,7 @@ static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid) > gfp_t gfp_mask = htlb_alloc_mask(h) | __GFP_THISNODE; > > folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, > - &node_states[N_MEMORY], NULL); > + &node_states[N_MEMORY]); > if (!folio) > break; > free_huge_folio(folio); /* free it into the hugepage allocator */ Reviewed-by: Anshuman Khandual