From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) (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 D32692E1742; Wed, 20 Aug 2025 09:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755681765; cv=none; b=gENFaoAdanvfGDYCb0+RSJGEWjSynzTzdKZXT3SsSX//XrPQfhQBJA9eUyhIHBEtLiZtAteoA7WVVhwVeS+VAhiaEY8VoZpcOm1rPNgx3CCyS6/Ns4lz5guNthFtnILM4WSlY9PQNFBr79/gSgbrqfvIt23sC2olzKte7USL//k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755681765; c=relaxed/simple; bh=yUCt1pPaMx7JVZBQZQbvE7z+7ajLYmKvOlONA/NhJV8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MxQBuoxI12wO/b0D9tlpD5RbpqhW5RwscDvTb/NduOmAbCKnsU4TNpAeNkzICiG0+U6dbhy3UsrAZUQj1Lx3HqmxtFfk+RiKhV6hjIaI6cFR14V2/XSXeGUKpKAU8I9OPG8zFO/oas82aIEMDbRGBddO1AYeROecivvx6xLu9T4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=VFcTqMEB; arc=none smtp.client-ip=115.124.30.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="VFcTqMEB" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1755681753; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=YGgNtPnkWs24Cm5tQaMk9u0G5NYAGMzfPYAnpUK7BCE=; b=VFcTqMEBUKg16CarMORmCUvc0TckKrbN7LYdpujoCAbcuq03Za4SWI9TF6zd6hGZ1FMzmKuheep7M17X2mIFp2Z8yb+Keo4HsRW2+324rtYZVlgYN+6Uj/cF35QTU1FbuGX1TgsXcuHI2RcoOepCDQ0eeKLN2Q/H2YmvXHD8sos= Received: from 30.74.144.118(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0WmBG0pZ_1755681750 cluster:ay36) by smtp.aliyun-inc.com; Wed, 20 Aug 2025 17:22:30 +0800 Message-ID: Date: Wed, 20 Aug 2025 17:22:30 +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 4/5] selftests/mm: add check_after_split_folio_orders() helper. To: Zi Yan , Wei Yang , wang lian , David Hildenbrand , linux-mm@kvack.org Cc: Andrew Morton , Lorenzo Stoakes , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20250818184622.1521620-1-ziy@nvidia.com> <20250818184622.1521620-5-ziy@nvidia.com> From: Baolin Wang In-Reply-To: <20250818184622.1521620-5-ziy@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025/8/19 02:46, Zi Yan wrote: > The helper gathers a folio order statistics of folios within a virtual > address range and checks it against a given order list. It aims to provide > a more precise folio order check instead of just checking the existence of > PMD folios. > > The helper will be used the upcoming commit. > > Signed-off-by: Zi Yan > --- I tested this patch, and it works for me. Tested-by: Baolin Wang By the way, I moved gather_after_split_folio_orders() to the vm_util.c file as a helper for mTHP collapse checks in my patchset[1]. I'm not sure whether you need to move gather_after_split_folio_orders() to vm_util.c in this patch, or if I should move it in my patchset. [1] https://lore.kernel.org/all/955e0b9682b1746c528a043f0ca530b54ee22536.1755677674.git.baolin.wang@linux.alibaba.com/