From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-51.mta1.migadu.com [95.215.58.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBD103EFFD7 for ; Tue, 25 Aug 2026 10:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787652359; cv=none; b=O1i/QRLJPyfn9ekkp2DqWNKIWvvuSb2pZSYhjoUGcNSG0S/HB991vHK7/dxFH/aMnSuCUE/V9VyGmpFKgaQGc3eYm2PLBCBbdbIhz4VNrmw01P9O2qqQVb0fmG3I6M/HsnsDs547sZcK9ypncQq+Q/9uGEIrgCk5pofgoHbLyrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787652359; c=relaxed/simple; bh=9oSCpY9pXoZEzwklBLr7SNX+iEk2oWh+j+ImIK+k3rg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dzHDdCHTA9NOKqtfHY+OHGfs25loPwSRaTOdP1gO0No9Z62cUVX63rZAlXJVGcY0JT9T8f8GCD4/prUQEgUb8TdC2K0SEzmA9N2J7x6lZuIhj+2FuNcnJ0IoITvFadZKSX1HFLL80qR0j1Tzzl+AfwO9uhj1lDaXMmADFdVOgJg= 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=HdTWDrOn; arc=none smtp.client-ip=95.215.58.51 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="HdTWDrOn" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=9oSCpY9pXoZEzwklBLr7SNX+iEk2oWh+j+ImIK+k3rg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787652354; v=1; x=1788257154; b=HdTWDrOnLVIc3ebVNuIpT9YS0PyolTcwnDEdLEo1q+FfcGcfPF8LhKAaROjZladt1/BX28ae A3B8vEOe9lAImo9ulVbwP4+/yvMk51JZypiVc5aaLYmkVj56k0x4o9OtvJ2myn1fa9ndRyv12ku aX/xvgD97ljQlOnMbiKA9sFA= X-Envelope-To: linux-kernel@vger.kernel.org Received: from [100.82.85.74] (101.71.133.200) by smtp.migadu.com with ESMTPS id 5db4b3f43ae3f8fb; Tue, 25 Aug 2026 10:05:44 +0000 X-Mizu-Trace-ID: 5db4b3f43ae3f8fb X-Migadu-Flow: FLOW_OUT Message-ID: <856cafbc-cead-4a63-b2d6-3a5e5740a4a1@linux.dev> Date: Tue, 25 Aug 2026 18:05:34 +0800 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 v5 02/17] mm/sparse-vmemmap: rename HVO order macros To: Muchun Song , Andrew Morton , Oscar Salvador , David Hildenbrand Cc: Mike Rapoport , Vlastimil Babka , Lorenzo Stoakes , Michal Hocko , David Laight , "Liam R . Howlett" , Suren Baghdasaryan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song References: <20260825084608.47437-1-songmuchun@bytedance.com> <20260825084608.47437-3-songmuchun@bytedance.com> From: Qi Zheng In-Reply-To: <20260825084608.47437-3-songmuchun@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/25/26 4:45 PM, Muchun Song wrote: > The macros VMEMMAP_TAIL_MIN_ORDER and NR_VMEMMAP_TAILS describe the > order range where HVO can be applied, but their names tie that range to > the tail-page cache implementation. > > Rename them with a VMEMMAP_OPTIMIZATION prefix and use the new names in > the HVO paths. This makes the code describe the optimization requirements > rather than the tail-page cache implementation detail. > > No functional change intended. > > Signed-off-by: Muchun Song > Acked-by: Mike Rapoport (Microsoft) > --- > v3: > - Collect Acked-by from Mike Rapoport > > v2: > - Rename the macros with a VMEMMAP_OPTIMIZATION prefix (suggested by > Mike Rapoport) > - Drop intermediate optimized-folio size macros (suggested by Mike > Rapoport) > --- > include/linux/mmzone.h | 17 +++++++++-------- > mm/hugetlb.c | 4 ++-- > mm/hugetlb_vmemmap.c | 2 +- > mm/sparse-vmemmap.c | 4 ++-- > 4 files changed, 14 insertions(+), 13 deletions(-) > Acked-by: Qi Zheng Thanks, Qi