Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108434373
D44667.id136839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
920 B
Referenced Files
None
Subscribers
None
D44667.id136839.diff
View Options
diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c
--- a/sys/vm/vm_reserv.c
+++ b/sys/vm/vm_reserv.c
@@ -1213,7 +1213,7 @@
* 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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 5:56 PM (13 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16158051
Default Alt Text
D44667.id136839.diff (920 B)
Attached To
Mode
D44667: vm_reserv_reclaim_contig: Return NULL not false
Attached
Detach File
Event Timeline
Log In to Comment