Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143721429
D34887.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
872 B
Referenced Files
None
Subscribers
None
D34887.diff
View Options
diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c
--- a/sys/vm/vm_phys.c
+++ b/sys/vm/vm_phys.c
@@ -487,7 +487,9 @@
{
struct vm_freelist *fl;
struct vm_phys_seg *end_seg, *prev_seg, *seg, *tmp_seg;
+#if defined(VM_DMA32_NPAGES_THRESHOLD) || defined(VM_PHYSSEG_SPARSE)
u_long npages;
+#endif
int dom, flind, freelist, oind, pind, segind;
/*
@@ -497,7 +499,9 @@
* Initially, the entries of vm_freelist_to_flind[] are set to either
* 0 or 1 to indicate which free lists should be created.
*/
+#ifdef VM_DMA32_NPAGES_THRESHOLD
npages = 0;
+#endif
for (segind = vm_phys_nsegs - 1; segind >= 0; segind--) {
seg = &vm_phys_segs[segind];
#ifdef VM_FREELIST_LOWMEM
@@ -520,7 +524,9 @@
else
#endif
{
+#ifdef VM_DMA32_NPAGES_THRESHOLD
npages += atop(seg->end - seg->start);
+#endif
vm_freelist_to_flind[VM_FREELIST_DEFAULT] = 1;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 9:01 AM (14 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28326166
Default Alt Text
D34887.diff (872 B)
Attached To
Mode
D34887: vm_phys_init: Quiet unused but set warnings about npages.
Attached
Detach File
Event Timeline
Log In to Comment