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 E58E32D9EE5 for ; Mon, 10 Nov 2025 19:11:54 +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=1762801915; cv=none; b=m8vticT9TGzqAiJcB6orZ7kV1Xr+eQnTkduo+85u8XGoQvBsqLJfAM56O60v/joisy+I/4av1hBDZSCgFxltXSFqaJ+DmlnVJS88Z+yzlrsanHZGCMLclN3dMbo5JXlxDVA1e0S5TejBa/sRYGXcjhYmI4jL5wGxSBhor2K+ROM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762801915; c=relaxed/simple; bh=45fgPHtKyzN9r7SAFeiALaca4HZbYtQ9T+3eYVX+hw0=; h=Date:To:From:Subject:Message-Id; b=pfsuMNoTprOUR/PbBePaVaS8rXgvRZo2W4MU6CFvCRiQ9izYrRGW4FDmuAbOUbsJ0JrJQzIyF2zBfI47LTxUuLNHj4WN0Vl5xPk1kFwfN5bzgmCd08kbsmr2Jq19XbxLlucsfv9PIsU5eGRHehY2qpVmxyjsnRhWdOPBLzxlxBo= 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=PrkqehWh; 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="PrkqehWh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60A7DC4CEFB; Mon, 10 Nov 2025 19:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1762801914; bh=45fgPHtKyzN9r7SAFeiALaca4HZbYtQ9T+3eYVX+hw0=; h=Date:To:From:Subject:From; b=PrkqehWhooV6ug6yvq10s/Qw7OLCut4nESty3kX6j5BDoMFp4EzcmV4tmzPs9RVJB GMykZV2JPI+eMnXl1cWAy0r0mfinRlIDxh4wyRqnNWq2LrGeE1HLVsziw+OobKfxQw mUgHA0Yvtd/8CSbuxJH5/U2ZQZbBvjAQrLMCFOVY= Date: Mon, 10 Nov 2025 11:11:53 -0800 To: mm-commits@vger.kernel.org,urezki@gmail.com,hch@lst.de,hch@infradead.org,vishal.moola@gmail.com,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block.patch added to mm-new branch Message-Id: <20251110191154.60A7DC4CEFB@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: mm/vmalloc: cleanup gfp flag use in new_vmap_block() has been added to the -mm mm-new branch. Its filename is mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. 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: "Vishal Moola (Oracle)" Subject: mm/vmalloc: cleanup gfp flag use in new_vmap_block() Date: Mon, 10 Nov 2025 08:04:57 -0800 The only caller, vb_alloc(), passes GFP_KERNEL into new_vmap_block() which is a subset of GFP_RECLAIM_MASK. Since there's no reason to use this mask here, remove it. Link: https://lkml.kernel.org/r/20251110160457.61791-5-vishal.moola@gmail.com Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Uladzislau Rezki (Sony) Cc: Christoph Hellwig Cc: Christoph Hellwig Signed-off-by: Andrew Morton --- mm/vmalloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/mm/vmalloc.c~mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block +++ a/mm/vmalloc.c @@ -2699,8 +2699,7 @@ static void *new_vmap_block(unsigned int node = numa_node_id(); - vb = kmalloc_node(sizeof(struct vmap_block), - gfp_mask & GFP_RECLAIM_MASK, node); + vb = kmalloc_node(sizeof(struct vmap_block), gfp_mask, node); if (unlikely(!vb)) return ERR_PTR(-ENOMEM); _ Patches currently in -mm which might be from vishal.moola@gmail.com are mm-vmalloc-request-large-order-pages-from-buddy-allocator.patch mm-vmalloc-warn-on-invalid-vmalloc-gfp-flags.patch mm-vmalloc-add-a-helper-to-optimize-vmalloc-allocation-gfps.patch mm-vmalloc-cleanup-large_gfp-in-vm_area_alloc_pages.patch mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block.patch