Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2025 08:20:22 GMT
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 349340c8cd5c - main - vm_page: use vm_page_alloc_fail consistently
Message-ID:  <202505160820.54G8KMle075430@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dougm:

URL: https://cgit.FreeBSD.org/src/commit/?id=349340c8cd5cedc800eba18400bba0b244e8e866

commit 349340c8cd5cedc800eba18400bba0b244e8e866
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2025-05-16 08:14:25 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
CommitDate: 2025-05-16 08:14:25 +0000

    vm_page: use vm_page_alloc_fail consistently
    
    The function vm_page_alloc_fail is used in different ways in different
    places to achieve the same effect.  This purely stylistic change makes
    the usages consistent.
    
    Reviewed by:    alc, kib, markj
    Differential Revision:  https://reviews.freebsd.org/D50263
---
 sys/vm/vm_page.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index f83df515a03d..f80de4eb151f 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -2459,9 +2459,9 @@ again:
 		}
 	}
 	if (m == NULL) {
-		if (vm_domain_alloc_fail(vmd, NULL, req))
-			goto again;
-		return (NULL);
+		if (!vm_domain_alloc_fail(vmd, NULL, req))
+			return (NULL);
+		goto again;
 	}
 
 found:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505160820.54G8KMle075430>