From nobody Wed Apr 10 12:52:32 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VF2mJ5DnSz5H4PC; Wed, 10 Apr 2024 12:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VF2mJ3Plxz4WKY; Wed, 10 Apr 2024 12:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712753552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eHVV+FbwTrk7On3p1H+55IPYdpsQp5gVOFXZa4+pWJM=; b=YveBsGcsf+wBvR4Y+rlHpA+ESLnwrAFIwwjSK2smmNiSQ48RkwJWiUvoLMNp9Kdg0yKyLT C5UukoKF+3FHnyZEmbHBgjniNCqt1lehW7cEgRZweARAWm/6K5ubsrbTOeszBSDrsf/jqO rGiOPPVLN6IO7/fUIIBD0+VP0phbY/a2SJQVpNCsvUP7NpPTc7oMXOrfGlAXMGU7wGSdWg 6DKebmRJZE2e8VKGcnbGzHP8X19gla3KiwlNae9WKGi2y6zUQhT1huJeldsGdmpYRtwxDZ ii+p1jO72K/HPI75caTnVhP441vAjhTBY7mqgi7aY28mvtKMRsnIv1Y1kjS9og== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712753552; a=rsa-sha256; cv=none; b=IW7N133bw7lVPOI8KPbV2ALaKn142e2tvAL7y5Kk2HaD6hWxAfshWBataEo6Uy0WN9hHTr GJ8dXs76wouKe/5iAbT8wyBPnzNBE2AVdWbrDXNICbtoSFiHOmomqy/egXkqf33jsVmTAM lgGVL5b5fJ62/xu0H+++fJXAZfYp32aMGdBHLNEcAfsCbkU3QjYSP/fa14WZy514C8XBwA mwSL/us+d8cRzIqngsOPaEqpAsAwbmadYEm9wEqgHcyeiZfWVjrEjEKb7ZPXKGERNm3o24 Hj8uTyloT+ofAf4yhHF+CVyumebrLNfzbZJ+h+HjxXpkcCr5qVZKLb5us9xXzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712753552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eHVV+FbwTrk7On3p1H+55IPYdpsQp5gVOFXZa4+pWJM=; b=Ja4NDM2yedgYZLhD86iEPiLEtkEwExzK0l+UrMIrJ6nZXi1WclbnvkHYIfkmq4UxfWSkYv SPjRtZX0PqctFpR6WPPN3mA8QjVJ+2XiD71Z61MDUBmxXsWl5SfjHY/c4/nRGWlGia0c2y A6Oi8sd6WXIeNf73cVPN3s3m/9Vu3D/xxrZUzx0eSVpGHWuf4Qd4VgJH39zW87IYKeAFLX dOAXn5XrCVQHx0N/utknV/YwgCnkMK1Sdtm1Smvv5FsARm+5g3hxzbwpggpkN0d7sqoUgh 0EBTXgQsPDJxHSTud7bOmArXAfzV3ZoCO2ZYTmrCMX6SzgdFvw7462kKCNibbQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VF2mJ30vtzfJ3; Wed, 10 Apr 2024 12:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43ACqWl6053018; Wed, 10 Apr 2024 12:52:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43ACqWF1053015; Wed, 10 Apr 2024 12:52:32 GMT (envelope-from git) Date: Wed, 10 Apr 2024 12:52:32 GMT Message-Id: <202404101252.43ACqWF1053015@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 989a2cf19d05 - main - vm_reserv_reclaim_contig: Return NULL not false List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: dev-commits-src-all+owner@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 989a2cf19d053954f0bad28790114a374b05c9c1 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=989a2cf19d053954f0bad28790114a374b05c9c1 commit 989a2cf19d053954f0bad28790114a374b05c9c1 Author: Minsoo Choo AuthorDate: 2024-04-10 12:49:26 +0000 Commit: Mark Johnston CommitDate: 2024-04-10 12:50:16 +0000 vm_reserv_reclaim_contig: Return NULL not false Reviewed by: dougm, zlei MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44667 --- sys/vm/vm_reserv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index b3b1dc62f14e..a4bbccdfb428 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -1213,7 +1213,7 @@ vm_reserv_find_contig(vm_reserv_t rv, int npages, int lo, * Searches the partially populated reservation queue for the least recently * changed reservation with free pages that satisfy the given request for * contiguous physical memory. If a satisfactory reservation is found, it is - * broken. Returns true if a reservation is broken and false otherwise. + * broken. Returns a page if a reservation is broken and NULL otherwise. */ vm_page_t vm_reserv_reclaim_contig(int domain, u_long npages, vm_paddr_t low, @@ -1229,7 +1229,7 @@ vm_reserv_reclaim_contig(int domain, u_long npages, vm_paddr_t low, KASSERT(powerof2(alignment), ("alignment is not a power of 2")); KASSERT(powerof2(boundary), ("boundary is not a power of 2")); if (npages > VM_LEVEL_0_NPAGES - 1) - return (false); + return (NULL); size = npages << PAGE_SHIFT; /* * Ensure that a free range starting at a boundary-multiple