linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
@ 2025-08-07  8:27 Wei Yang
  2025-08-07  9:26 ` Baolin Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Wei Yang @ 2025-08-07  8:27 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes, ziy, dev.jain
  Cc: linux-mm, linux-kselftest, Wei Yang

Currently it hard coded the number of hugepage to check for
check_huge_anon(), but we already have the number passed in.

Do the check based on the number of hugepage passed in is more
reasonable.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
index 44a3f8a58806..bf40e6b121ab 100644
--- a/tools/testing/selftests/mm/split_huge_page_test.c
+++ b/tools/testing/selftests/mm/split_huge_page_test.c
@@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
 	unsigned long rss_anon_before, rss_anon_after;
 	size_t i;
 
-	if (!check_huge_anon(one_page, 4, pmd_pagesize))
+	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
 		ksft_exit_fail_msg("No THP is allocated\n");
 
 	rss_anon_before = rss_anon();
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
@ 2025-08-07  9:26 ` Baolin Wang
  2025-08-07  9:34 ` Donet Tom
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: Baolin Wang @ 2025-08-07  9:26 UTC (permalink / raw)
  To: Wei Yang, akpm, david, lorenzo.stoakes, ziy, dev.jain
  Cc: linux-mm, linux-kselftest



On 2025/8/7 16:27, Wei Yang wrote:
> Currently it hard coded the number of hugepage to check for
> check_huge_anon(), but we already have the number passed in.
> 
> Do the check based on the number of hugepage passed in is more
> reasonable.
> 
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---

Yes. LGTM.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>

>   tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
> index 44a3f8a58806..bf40e6b121ab 100644
> --- a/tools/testing/selftests/mm/split_huge_page_test.c
> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>   	unsigned long rss_anon_before, rss_anon_after;
>   	size_t i;
>   
> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>   		ksft_exit_fail_msg("No THP is allocated\n");
>   
>   	rss_anon_before = rss_anon();



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
  2025-08-07  9:26 ` Baolin Wang
@ 2025-08-07  9:34 ` Donet Tom
  2025-08-07 10:26 ` David Hildenbrand
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: Donet Tom @ 2025-08-07  9:34 UTC (permalink / raw)
  To: Wei Yang, akpm, david, lorenzo.stoakes, ziy, dev.jain
  Cc: linux-mm, linux-kselftest


On 8/7/25 1:57 PM, Wei Yang wrote:
> Currently it hard coded the number of hugepage to check for
> check_huge_anon(), but we already have the number passed in.
>
> Do the check based on the number of hugepage passed in is more
> reasonable.
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---
>   tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
> index 44a3f8a58806..bf40e6b121ab 100644
> --- a/tools/testing/selftests/mm/split_huge_page_test.c
> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>   	unsigned long rss_anon_before, rss_anon_after;
>   	size_t i;
>   
> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>   		ksft_exit_fail_msg("No THP is allocated\n");
>   
>   	rss_anon_before = rss_anon();

LGTM

reviewed-by: Donet Tom <donettom@linux.ibm.com>




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
  2025-08-07  9:26 ` Baolin Wang
  2025-08-07  9:34 ` Donet Tom
@ 2025-08-07 10:26 ` David Hildenbrand
  2025-08-08  1:30 ` wang lian
  2025-08-08 15:56 ` Zi Yan
  4 siblings, 0 replies; 12+ messages in thread
From: David Hildenbrand @ 2025-08-07 10:26 UTC (permalink / raw)
  To: Wei Yang, akpm, lorenzo.stoakes, ziy, dev.jain; +Cc: linux-mm, linux-kselftest

On 07.08.25 10:27, Wei Yang wrote:
> Currently it hard coded the number of hugepage to check for
> check_huge_anon(), but we already have the number passed in.
> 
> Do the check based on the number of hugepage passed in is more
> reasonable.
> 
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---

Acked-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
                   ` (2 preceding siblings ...)
  2025-08-07 10:26 ` David Hildenbrand
@ 2025-08-08  1:30 ` wang lian
  2025-08-08 15:56 ` Zi Yan
  4 siblings, 0 replies; 12+ messages in thread
From: wang lian @ 2025-08-08  1:30 UTC (permalink / raw)
  To: richard.weiyang
  Cc: akpm, david, dev.jain, linux-kselftest, linux-mm, lorenzo.stoakes,
	ziy, wang lian

On 2025/8/8 09:27, Wei Yang wrote:
> Currently it hard coded the number of hugepage to check for
> check_huge_anon(), but we already have the number passed in.
> 
> Do the check based on the number of hugepage passed in is more
> reasonable.
> 
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---

Yes. LGTM.
Reviewed-by: wang lian <lianux.mm@gmail.com>

Best regards,
wang lian


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
                   ` (3 preceding siblings ...)
  2025-08-08  1:30 ` wang lian
@ 2025-08-08 15:56 ` Zi Yan
  2025-08-08 15:59   ` Zi Yan
  4 siblings, 1 reply; 12+ messages in thread
From: Zi Yan @ 2025-08-08 15:56 UTC (permalink / raw)
  To: Wei Yang, akpm
  Cc: david, lorenzo.stoakes, dev.jain, linux-mm, linux-kselftest

On 7 Aug 2025, at 4:27, Wei Yang wrote:

> Currently it hard coded the number of hugepage to check for
> check_huge_anon(), but we already have the number passed in.
>
> Do the check based on the number of hugepage passed in is more
> reasonable.
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---
>  tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
> index 44a3f8a58806..bf40e6b121ab 100644
> --- a/tools/testing/selftests/mm/split_huge_page_test.c
> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>  	unsigned long rss_anon_before, rss_anon_after;
>  	size_t i;
>
> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>  		ksft_exit_fail_msg("No THP is allocated\n");
>
>  	rss_anon_before = rss_anon();

Which commit is this patch based on?

In mm-new[1], verify_rss_anon_split_huge_page_all_zeroes() accepts
char *one_page and size_t len but no nr_hpages. This breaks
split_huge_page_test.c compilation.

Are you forgetting some cleanup patches before this one?

[1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=mm-new#n110


Hi Andrew,

Can you drop this one for now? Thanks.


--
Best Regards,
Yan, Zi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-08 15:56 ` Zi Yan
@ 2025-08-08 15:59   ` Zi Yan
  2025-08-08 16:01     ` Zi Yan
  0 siblings, 1 reply; 12+ messages in thread
From: Zi Yan @ 2025-08-08 15:59 UTC (permalink / raw)
  To: Wei Yang, akpm
  Cc: david, lorenzo.stoakes, dev.jain, linux-mm, linux-kselftest

On 8 Aug 2025, at 11:56, Zi Yan wrote:

> On 7 Aug 2025, at 4:27, Wei Yang wrote:
>
>> Currently it hard coded the number of hugepage to check for
>> check_huge_anon(), but we already have the number passed in.
>>
>> Do the check based on the number of hugepage passed in is more
>> reasonable.
>>
>> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
>> ---
>>  tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
>> index 44a3f8a58806..bf40e6b121ab 100644
>> --- a/tools/testing/selftests/mm/split_huge_page_test.c
>> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
>> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>>  	unsigned long rss_anon_before, rss_anon_after;
>>  	size_t i;
>>
>> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
>> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>>  		ksft_exit_fail_msg("No THP is allocated\n");
>>
>>  	rss_anon_before = rss_anon();
>
> Which commit is this patch based on?
>
> In mm-new[1], verify_rss_anon_split_huge_page_all_zeroes() accepts
> char *one_page and size_t len but no nr_hpages. This breaks
> split_huge_page_test.c compilation.
>
> Are you forgetting some cleanup patches before this one?
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=mm-new#n110
>
>
> Hi Andrew,
>
> Can you drop this one for now? Thanks.

Wait. It seems that mm-new is different from Linus' tree[1]. I wonder
what is going on.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=v6.16#n109

--
Best Regards,
Yan, Zi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-08 15:59   ` Zi Yan
@ 2025-08-08 16:01     ` Zi Yan
  2025-08-09  0:46       ` Andrew Morton
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Zi Yan @ 2025-08-08 16:01 UTC (permalink / raw)
  To: Wei Yang, akpm
  Cc: david, lorenzo.stoakes, dev.jain, linux-mm, linux-kselftest

On 8 Aug 2025, at 11:59, Zi Yan wrote:

> On 8 Aug 2025, at 11:56, Zi Yan wrote:
>
>> On 7 Aug 2025, at 4:27, Wei Yang wrote:
>>
>>> Currently it hard coded the number of hugepage to check for
>>> check_huge_anon(), but we already have the number passed in.
>>>
>>> Do the check based on the number of hugepage passed in is more
>>> reasonable.
>>>
>>> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
>>> ---
>>>  tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
>>> index 44a3f8a58806..bf40e6b121ab 100644
>>> --- a/tools/testing/selftests/mm/split_huge_page_test.c
>>> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
>>> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>>>  	unsigned long rss_anon_before, rss_anon_after;
>>>  	size_t i;
>>>
>>> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
>>> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>>>  		ksft_exit_fail_msg("No THP is allocated\n");
>>>
>>>  	rss_anon_before = rss_anon();
>>
>> Which commit is this patch based on?
>>
>> In mm-new[1], verify_rss_anon_split_huge_page_all_zeroes() accepts
>> char *one_page and size_t len but no nr_hpages. This breaks
>> split_huge_page_test.c compilation.
>>
>> Are you forgetting some cleanup patches before this one?
>>
>> [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=mm-new#n110
>>
>>
>> Hi Andrew,
>>
>> Can you drop this one for now? Thanks.
>
> Wait. It seems that mm-new is different from Linus' tree[1]. I wonder
> what is going on.
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=v6.16#n109

Wei, it seems that you lost the race to Muhammad Usama Anjum's cleanup patch[1].
You might need to add nr_hpages back.

[1] https://lore.kernel.org/all/20250731160132.1795351-6-usama.anjum@collabora.com/T/#u

--
Best Regards,
Yan, Zi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-08 16:01     ` Zi Yan
@ 2025-08-09  0:46       ` Andrew Morton
  2025-08-09 18:35       ` Wei Yang
  2025-08-10 14:04       ` Lorenzo Stoakes
  2 siblings, 0 replies; 12+ messages in thread
From: Andrew Morton @ 2025-08-09  0:46 UTC (permalink / raw)
  To: Zi Yan
  Cc: Wei Yang, david, lorenzo.stoakes, dev.jain, linux-mm,
	linux-kselftest

On Fri, 08 Aug 2025 12:01:47 -0400 Zi Yan <ziy@nvidia.com> wrote:

> > Wait. It seems that mm-new is different from Linus' tree[1]. I wonder
> > what is going on.
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=v6.16#n109
> 
> Wei, it seems that you lost the race to Muhammad Usama Anjum's cleanup patch[1].
> You might need to add nr_hpages back.
> 
> [1] https://lore.kernel.org/all/20250731160132.1795351-6-usama.anjum@collabora.com/T/#u
> 

Ah, thanks, I'll drop this version of "selftests/mm: do
check_huge_anon() with a number been passed in".


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-08 16:01     ` Zi Yan
  2025-08-09  0:46       ` Andrew Morton
@ 2025-08-09 18:35       ` Wei Yang
  2025-08-10 14:04       ` Lorenzo Stoakes
  2 siblings, 0 replies; 12+ messages in thread
From: Wei Yang @ 2025-08-09 18:35 UTC (permalink / raw)
  To: Zi Yan
  Cc: Wei Yang, akpm, david, lorenzo.stoakes, dev.jain, linux-mm,
	linux-kselftest

On Fri, Aug 08, 2025 at 12:01:47PM -0400, Zi Yan wrote:
>On 8 Aug 2025, at 11:59, Zi Yan wrote:
>
>> On 8 Aug 2025, at 11:56, Zi Yan wrote:
>>
>>> On 7 Aug 2025, at 4:27, Wei Yang wrote:
>>>
>>>> Currently it hard coded the number of hugepage to check for
>>>> check_huge_anon(), but we already have the number passed in.
>>>>
>>>> Do the check based on the number of hugepage passed in is more
>>>> reasonable.
>>>>
>>>> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
>>>> ---
>>>>  tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
>>>> index 44a3f8a58806..bf40e6b121ab 100644
>>>> --- a/tools/testing/selftests/mm/split_huge_page_test.c
>>>> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
>>>> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
>>>>  	unsigned long rss_anon_before, rss_anon_after;
>>>>  	size_t i;
>>>>
>>>> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
>>>> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
>>>>  		ksft_exit_fail_msg("No THP is allocated\n");
>>>>
>>>>  	rss_anon_before = rss_anon();
>>>
>>> Which commit is this patch based on?
>>>
>>> In mm-new[1], verify_rss_anon_split_huge_page_all_zeroes() accepts
>>> char *one_page and size_t len but no nr_hpages. This breaks
>>> split_huge_page_test.c compilation.
>>>
>>> Are you forgetting some cleanup patches before this one?
>>>
>>> [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=mm-new#n110
>>>
>>>
>>> Hi Andrew,
>>>
>>> Can you drop this one for now? Thanks.
>>
>> Wait. It seems that mm-new is different from Linus' tree[1]. I wonder
>> what is going on.
>>
>> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=v6.16#n109
>
>Wei, it seems that you lost the race to Muhammad Usama Anjum's cleanup patch[1].
>You might need to add nr_hpages back.
>
>[1] https://lore.kernel.org/all/20250731160132.1795351-6-usama.anjum@collabora.com/T/#u
>

Thanks.

My patch is based on mm-unstable. So currently we base commit on mm-new?

>--
>Best Regards,
>Yan, Zi

-- 
Wei Yang
Help you, Help me


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-08 16:01     ` Zi Yan
  2025-08-09  0:46       ` Andrew Morton
  2025-08-09 18:35       ` Wei Yang
@ 2025-08-10 14:04       ` Lorenzo Stoakes
  2025-08-11  0:51         ` Wei Yang
  2 siblings, 1 reply; 12+ messages in thread
From: Lorenzo Stoakes @ 2025-08-10 14:04 UTC (permalink / raw)
  To: akpm; +Cc: Wei Yang, Zi Yan, david, dev.jain, linux-mm, linux-kselftest

Yeah just hit this,

Adnrew - can we please drop this patch from mm-new for now? It's breaking the mm
self tests build.

Maybe then Wei you can do a v2 rebased on current state of mm self tests?

Thanks!

On Fri, Aug 08, 2025 at 12:01:47PM -0400, Zi Yan wrote:
> On 8 Aug 2025, at 11:59, Zi Yan wrote:
>
> > On 8 Aug 2025, at 11:56, Zi Yan wrote:
> >
> >> On 7 Aug 2025, at 4:27, Wei Yang wrote:
> >>
> >>> Currently it hard coded the number of hugepage to check for
> >>> check_huge_anon(), but we already have the number passed in.
> >>>
> >>> Do the check based on the number of hugepage passed in is more
> >>> reasonable.
> >>>
> >>> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> >>> ---
> >>>  tools/testing/selftests/mm/split_huge_page_test.c | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
> >>> index 44a3f8a58806..bf40e6b121ab 100644
> >>> --- a/tools/testing/selftests/mm/split_huge_page_test.c
> >>> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
> >>> @@ -111,7 +111,7 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp
> >>>  	unsigned long rss_anon_before, rss_anon_after;
> >>>  	size_t i;
> >>>
> >>> -	if (!check_huge_anon(one_page, 4, pmd_pagesize))
> >>> +	if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize))
> >>>  		ksft_exit_fail_msg("No THP is allocated\n");
> >>>
> >>>  	rss_anon_before = rss_anon();
> >>
> >> Which commit is this patch based on?
> >>
> >> In mm-new[1], verify_rss_anon_split_huge_page_all_zeroes() accepts
> >> char *one_page and size_t len but no nr_hpages. This breaks
> >> split_huge_page_test.c compilation.
> >>
> >> Are you forgetting some cleanup patches before this one?
> >>
> >> [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=mm-new#n110
> >>
> >>
> >> Hi Andrew,
> >>
> >> Can you drop this one for now? Thanks.
> >
> > Wait. It seems that mm-new is different from Linus' tree[1]. I wonder
> > what is going on.
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/mm/split_huge_page_test.c?h=v6.16#n109
>
> Wei, it seems that you lost the race to Muhammad Usama Anjum's cleanup patch[1].
> You might need to add nr_hpages back.
>
> [1] https://lore.kernel.org/all/20250731160132.1795351-6-usama.anjum@collabora.com/T/#u
>
> --
> Best Regards,
> Yan, Zi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] selftests/mm: do check_huge_anon() with a number been passed in
  2025-08-10 14:04       ` Lorenzo Stoakes
@ 2025-08-11  0:51         ` Wei Yang
  0 siblings, 0 replies; 12+ messages in thread
From: Wei Yang @ 2025-08-11  0:51 UTC (permalink / raw)
  To: Lorenzo Stoakes
  Cc: akpm, Wei Yang, Zi Yan, david, dev.jain, linux-mm,
	linux-kselftest

On Sun, Aug 10, 2025 at 03:04:08PM +0100, Lorenzo Stoakes wrote:
>Yeah just hit this,
>
>Adnrew - can we please drop this patch from mm-new for now? It's breaking the mm
>self tests build.
>
>Maybe then Wei you can do a v2 rebased on current state of mm self tests?
>

Yup, v2 is on its way.

>Thanks!
>

-- 
Wei Yang
Help you, Help me


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-08-11  0:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07  8:27 [PATCH] selftests/mm: do check_huge_anon() with a number been passed in Wei Yang
2025-08-07  9:26 ` Baolin Wang
2025-08-07  9:34 ` Donet Tom
2025-08-07 10:26 ` David Hildenbrand
2025-08-08  1:30 ` wang lian
2025-08-08 15:56 ` Zi Yan
2025-08-08 15:59   ` Zi Yan
2025-08-08 16:01     ` Zi Yan
2025-08-09  0:46       ` Andrew Morton
2025-08-09 18:35       ` Wei Yang
2025-08-10 14:04       ` Lorenzo Stoakes
2025-08-11  0:51         ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).