Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164986274
D11000.id29046.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D11000.id29046.diff
View Options
Index: sys/vm/vm_page.c
===================================================================
--- sys/vm/vm_page.c
+++ sys/vm/vm_page.c
@@ -573,7 +573,7 @@
size += vm_phys_segs[i].end - vm_phys_segs[i].start;
for (i = 0; phys_avail[i + 1] != 0; i += 2)
size += phys_avail[i + 1] - phys_avail[i];
- page_range = size / (PAGE_SIZE + sizeof(struct vm_page));
+ page_range = howmany(size, PAGE_SIZE + sizeof(struct vm_page));
#elif defined(VM_PHYSSEG_DENSE)
/*
* In the VM_PHYSSEG_DENSE case, the number of pages can account for
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 6, 5:45 AM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36084111
Default Alt Text
D11000.id29046.diff (537 B)
Attached To
Mode
D11000: Fix an off-by-one error in the VM page array on some systems.
Attached
Detach File
Event Timeline
Log In to Comment