git: 349340c8cd5c - main - vm_page: use vm_page_alloc_fail consistently
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 May 2025 08:20:22 UTC
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: