From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EC2DD522F for ; Wed, 10 Sep 2025 23:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757547230; cv=none; b=l3lDz3g/b+wK8BgMo4PUqlnV8KhqB24Ij+aL2RDOOOUbop/LSzXvBDGIIT0txRAh4vYjQ1PHE1xY5VCNEIaH5f2hy+jsj1XlzFij2m/Oib4kv8my2AlyWnimlCW8kt/KX1BA1CeaoBdWfmrFGvmiWukGmjF3VkLJyNneiw/Jjzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757547230; c=relaxed/simple; bh=DFyUtlEEH6cBop5cfPpwEEMSR+JtDuaW9QTEFsCvTDs=; h=Date:To:From:Subject:Message-Id; b=j8MbPBip3UMV2wjKCVzXMRCvSCbdCoKIljKyc/l44ozaz02tSrewF20f4N30p5QaT0oL/s9S7KHmaZwHuMN4BuyXZdLa0gjk+/apyEWlWRGpE2gHTj9cO4MKVNPl1pjxlsKlhxlaubrlaOv+Id9Imcm0TJ9V1RA8TdakhyW63/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=YsBnBbkd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="YsBnBbkd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B81D3C4CEEB; Wed, 10 Sep 2025 23:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1757547229; bh=DFyUtlEEH6cBop5cfPpwEEMSR+JtDuaW9QTEFsCvTDs=; h=Date:To:From:Subject:From; b=YsBnBbkd8GwuXFeJO5zwD5qCkCM5/4i1cA+m5hyZslkUGpGvYGsqxxY3LZPU9nTJK 71SFG0ZjWTHkXP5iVH4ih1NbDeMQ3lG6G9bhsgf8T/SP8pmi7GBfYG7SS+ZJBz3fYv xHZKsZobsrACVP+3wAwXt3LS1eDYWGqqparsWuqM= Date: Wed, 10 Sep 2025 16:33:49 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@suse.cz,sidhartha.kumar@oracle.com,osalvador@suse.de,muchun.song@linux.dev,jane.chu@oracle.com,jackmanb@google.com,hannes@cmpxchg.org,david@redhat.com,wangkefeng.wang@huawei.com,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-hugetlb-remove-struct-hstate-from-init_new_hugetlb_folio.patch added to mm-unstable branch Message-Id: <20250910233349.B81D3C4CEEB@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: mm: hugetlb: remove struct hstate from init_new_hugetlb_folio() has been added to the -mm mm-unstable branch. Its filename is mm-hugetlb-remove-struct-hstate-from-init_new_hugetlb_folio.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hugetlb-remove-struct-hstate-from-init_new_hugetlb_folio.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Kefeng Wang Subject: mm: hugetlb: remove struct hstate from init_new_hugetlb_folio() Date: Wed, 10 Sep 2025 21:39:57 +0800 The struct hstate is never used since commit d67e32f26713 ("hugetlb: restructure pool allocations”), remove it. Link: https://lkml.kernel.org/r/20250910133958.301467-5-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Acked-by: Oscar Salvador Reviewed-by: Sidhartha Kumar Reviewed-by: Jane Chu Reviewed-by: Zi Yan Cc: Brendan Jackman Cc: David Hildenbrand Cc: Johannes Weiner Cc: Muchun Song Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- mm/hugetlb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/mm/hugetlb.c~mm-hugetlb-remove-struct-hstate-from-init_new_hugetlb_folio +++ a/mm/hugetlb.c @@ -1896,7 +1896,7 @@ static void account_new_hugetlb_folio(st h->nr_huge_pages_node[folio_nid(folio)]++; } -static void init_new_hugetlb_folio(struct hstate *h, struct folio *folio) +static void init_new_hugetlb_folio(struct folio *folio) { __folio_set_hugetlb(folio); INIT_LIST_HEAD(&folio->lru); @@ -1985,7 +1985,7 @@ static struct folio *only_alloc_fresh_hu folio = alloc_buddy_hugetlb_folio(order, gfp_mask, nid, nmask, node_alloc_noretry); if (folio) - init_new_hugetlb_folio(h, folio); + init_new_hugetlb_folio(folio); return folio; } @@ -3408,7 +3408,7 @@ static void __init gather_bootmem_preall hugetlb_folio_init_vmemmap(folio, h, HUGETLB_VMEMMAP_RESERVE_PAGES); - init_new_hugetlb_folio(h, folio); + init_new_hugetlb_folio(folio); if (hugetlb_bootmem_page_prehvo(m)) /* @@ -4041,7 +4041,7 @@ static long demote_free_hugetlb_folios(s prep_compound_page(page, dst->order); new_folio->mapping = NULL; - init_new_hugetlb_folio(dst, new_folio); + init_new_hugetlb_folio(new_folio); /* Copy the CMA flag so that it is freed correctly */ if (cma) folio_set_hugetlb_cma(new_folio); _ Patches currently in -mm which might be from wangkefeng.wang@huawei.com are mm-hugetlb-convert-to-use-more-alloc_fresh_hugetlb_folio.patch mm-hugetlb-convert-to-account_new_hugetlb_folio.patch mm-hugetlb-directly-pass-order-when-allocate-a-hugetlb-folio.patch mm-hugetlb-remove-struct-hstate-from-init_new_hugetlb_folio.patch mm-hugeltb-check-numa_no_node-in-only_alloc_fresh_hugetlb_folio.patch