From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 97B68327BEC; Mon, 22 Dec 2025 06:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766383430; cv=none; b=GpNxzegHeCjmGyx3U6EqMob+7rjRvnLXu/mdTvHJ6w+HwgCf4MjvZ2Jwq9J/8rwlw4iprZXPXCqsXbrCR4iefUje1Ix0WFFcNEiIsvDJpX7qQue3/m5BiCJ4lpowGHqILZ+gRdMHUpXSYhgDTs9El+WfhTMyERp4bukPV21qHGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766383430; c=relaxed/simple; bh=PRnnTZVwdtQbtxggto6fiAl6entmFFqh2q8+K2mmbFA=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=KL1FqnbWskHhXBT5eT8xzp5F7NkIHOib95O3N3FDc3uJ3PQGw/pRmsomveDS8A5ttOanw451N39D6GihCPx1m+DMORWZSngBs/h/s1S4FjaGcN6j9aepy7ap+gX9NvxrpFn5tYBz+PPz2KW4URKxE+8GLPRst1/c8zUqt2ODZ/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Z3Q+8HPc; arc=none smtp.client-ip=95.215.58.186 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Z3Q+8HPc" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1766383425; 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=cdbF9OBo6i2zx9TZjagXwoBgfeB1DZlPblGdya54H4Q=; b=Z3Q+8HPcxJK1YcFgpkyBcRtK+6lyq/q3U+WEyqNwoZcE0oH9m9xx3fLpyG+cxISRpUOQli 9rp3Az5AergCmoG4irGDKUw2UWCmzGpDz8sRIPSqfCdt4TSYbdmfhUXNUet4GVz6fW0cs3 1jICIuujI7tUAMl5/8h/Yq37mKoqO4U= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.200.81.1.6\)) Subject: Re: [PATCHv2 12/14] mm/hugetlb: Remove hugetlb_optimize_vmemmap_key static key X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20251218150949.721480-13-kas@kernel.org> Date: Mon, 22 Dec 2025 14:03:01 +0800 Cc: Andrew Morton , David Hildenbrand , Matthew Wilcox , Usama Arif , Frank van der Linden , Oscar Salvador , Mike Rapoport , Vlastimil Babka , Lorenzo Stoakes , Zi Yan , Baoquan He , Michal Hocko , Johannes Weiner , Jonathan Corbet , kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20251218150949.721480-1-kas@kernel.org> <20251218150949.721480-13-kas@kernel.org> To: Kiryl Shutsemau X-Migadu-Flow: FLOW_OUT > On Dec 18, 2025, at 23:09, Kiryl Shutsemau wrote: > > The hugetlb_optimize_vmemmap_key static key was used to guard fake head > detection in compound_head() and related functions. It allowed skipping > the fake head checks entirely when HVO was not in use. > > With fake heads eliminated and the detection code removed, the static > key serves no purpose. Remove its definition and all increment/decrement > calls. > > Signed-off-by: Kiryl Shutsemau Reviewed-by: Muchun Song Thanks.