Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 84A6836F437 for ; Sun, 21 Jun 2026 18:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782067165; cv=none; b=a/yOyvJUJHVRGbHLB3/Xkc80Jlgu7O+C93Z+pRMNlh3aaMT2ld63tAqNX9u6QrwLWwYJdmv4YiWnVrzPP48F3k1lI/2TfZmASjYJvVCvsM9sAjkJ7nF+ucemUQQ6/163VX2/TEZyzO8eX/E/Cm3QtUr7gldzC3vkrsQMJhDB/QA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782067165; c=relaxed/simple; bh=r34hMKbcpuufFvFrUtrke21MGCVyuf/xU2a/CCOoNSc=; h=Date:To:From:Subject:Message-Id; b=hyVp4iPQz8fd8uGEW6YZukCR1raQvQHl/Ph1cOUZfWh+tdEaO8DcoycWmaB80f/0OCCPHpRzF2bIcbTpBKhXBLCaOYp/iFXS/WiEWGdRFbzhhW/4dbv4oypMiZdHKtyD7Phs2pV4DqIx8Sy3vN4ZUse2Scb+nV9oVTs7gu3rmfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=KW/FrY8M; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="KW/FrY8M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E0221F00A3A; Sun, 21 Jun 2026 18:39:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1782067164; bh=up3vnZDa9B9+m1YAS9BJMCIuMvJ89NaBQ9QGyVrae8A=; h=Date:To:From:Subject; b=KW/FrY8MWrBiTrh67IVvTfQvMkqioendMzkdYzrdCU3bwMMuKJLM4cUL6AXmgVwdu Po6rnciYSDc+gFAE46byniKElBUdmhuSEkgkmR4Uk1mIa/lg/pMIOW5GMjHPeI4261 8FR1/VelkjUicpJYPTrkovzfLRXtUeiuiUMVauMo= Date: Sun, 21 Jun 2026 11:39:23 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org,surenb@google.com,shuah@kernel.org,sarthak.sharma@arm.com,ryan.roberts@arm.com,peterx@redhat.com,npache@redhat.com,mhocko@suse.com,luizcap@redhat.com,ljs@kernel.org,li.wang@linux.dev,liam@infradead.org,leon@kernel.org,lance.yang@linux.dev,jhubbard@nvidia.com,jgg@ziepe.ca,donettom@linux.ibm.com,dev.jain@arm.com,david@kernel.org,broonie@kernel.org,baolin.wang@linux.alibaba.com,baohua@kernel.org,rppt@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] selftests-mm-hugepage_dio-add-setup-of-hugetlb-pages.patch removed from -mm tree Message-Id: <20260621183924.2E0221F00A3A@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: selftests/mm: hugepage_dio: add setup of HugeTLB pages has been removed from the -mm tree. Its filename was selftests-mm-hugepage_dio-add-setup-of-hugetlb-pages.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: "Mike Rapoport (Microsoft)" Subject: selftests/mm: hugepage_dio: add setup of HugeTLB pages Date: Mon, 11 May 2026 19:28:20 +0300 hugepage_dio test fails if there are no free huge pages prepared by a wrapper script. Add setup of HugeTLB pages to the test and make sure that the original settings are restored on the test exit. Link: https://lore.kernel.org/20260511162840.375890-37-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) Tested-by: Luiz Capitulino Tested-by: Sarthak Sharma Cc: Baolin Wang Cc: Barry Song Cc: David Hildenbrand Cc: Dev Jain Cc: Donet Tom Cc: Jason Gunthorpe Cc: John Hubbard Cc: Lance Yang Cc: Leon Romanovsky Cc: Liam Howlett Cc: Li Wang Cc: Lorenzo Stoakes Cc: Mark Brown Cc: Michal Hocko Cc: Nico Pache Cc: Peter Xu Cc: Ryan Roberts Cc: Shuah Khan Cc: Suren Baghdasaryan Cc: Vlastimil Babka Cc: Zi Yan Signed-off-by: Andrew Morton --- tools/testing/selftests/mm/hugetlb_dio.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --- a/tools/testing/selftests/mm/hugetlb_dio.c~selftests-mm-hugepage_dio-add-setup-of-hugetlb-pages +++ a/tools/testing/selftests/mm/hugetlb_dio.c @@ -85,8 +85,6 @@ static void run_dio_using_hugetlb(int fd /* Get the default huge page size */ h_pagesize = default_huge_page_size(); - if (!h_pagesize) - ksft_exit_fail_msg("Unable to determine huge page size\n"); /* Reset file position since fd is shared across tests */ if (lseek(fd, 0, SEEK_SET) < 0) @@ -94,10 +92,6 @@ static void run_dio_using_hugetlb(int fd /* Get the free huge pages before allocation */ free_hpage_b = hugetlb_free_default_pages(); - if (free_hpage_b == 0) { - close(fd); - ksft_exit_skip("No free hugepage, exiting!\n"); - } /* Allocate a hugetlb page */ orig_buffer = mmap(NULL, h_pagesize, mmap_prot, mmap_flags, -1, 0); @@ -141,8 +135,8 @@ int main(void) ksft_print_header(); - /* Check if huge pages are free */ - if (!hugetlb_free_default_pages()) + /* request a huge page */ + if (!hugetlb_setup_default(1)) ksft_exit_skip("No free hugepage, exiting\n"); fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664); _ Patches currently in -mm which might be from rppt@kernel.org are