Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107773814
D32009.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32009.diff
View Options
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -775,27 +775,25 @@
* phys_avail's ranges to the free lists.
*/
for (i = 0; phys_avail[i + 1] != 0; i += 2) {
- if (seg->end < phys_avail[i] ||
+ if (seg->end <= phys_avail[i] ||
seg->start >= phys_avail[i + 1])
continue;
startp = MAX(seg->start, phys_avail[i]);
- m = seg->first_page + atop(seg->start - startp);
endp = MIN(seg->end, phys_avail[i + 1]);
pagecount = (u_long)atop(endp - startp);
if (pagecount == 0)
continue;
+ m = seg->first_page + atop(startp - seg->start);
vmd = VM_DOMAIN(seg->domain);
vm_domain_free_lock(vmd);
vm_phys_enqueue_contig(m, pagecount);
vm_domain_free_unlock(vmd);
vm_domain_freecnt_inc(vmd, pagecount);
vm_cnt.v_page_count += (u_int)pagecount;
-
- vmd = VM_DOMAIN(seg->domain);
vmd->vmd_page_count += (u_int)pagecount;
- vmd->vmd_segs |= 1UL << m->segind;
+ vmd->vmd_segs |= 1UL << segind;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 2:48 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15917073
Default Alt Text
D32009.diff (1 KB)
Attached To
Mode
D32009: vm_page_startup: correct calculation of the starting page
Attached
Detach File
Event Timeline
Log In to Comment