]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/mm: fix split_huge_page_test for folio_split() tests
authorZi Yan <ziy@nvidia.com>
Wed, 9 Jul 2025 01:27:59 +0000 (21:27 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 02:26:16 +0000 (19:26 -0700)
commit7563fcbfd484b347b776aeed4d7dac78b30884aa
tree29e0c6df635e361760fe10c28721ba04e1c5b110
parent091a08b002d9b5040b92531fff07b52879f29722
selftests/mm: fix split_huge_page_test for folio_split() tests

PID_FMT does not have an offset field, so folio_split() tests are not
performed.  Add PID_FMT_OFFSET with an offset field and use it to perform
folio_split() tests.

Link: https://lkml.kernel.org/r/20250709012800.3225727-1-ziy@nvidia.com
Fixes: 80a5c494c89f ("selftests/mm: add tests for folio_split(), buddy allocator like split")
Signed-off-by: Zi Yan <ziy@nvidia.com>
Tested-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Donet Tom <donettom@linux.ibm.com>
Tested-by : Donet Tom <donettom@linux.ibm.com>
Cc: Barry Song <baohua@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Mariano Pache <npache@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/split_huge_page_test.c