Page MenuHomeFreeBSD

D20847.id.diff
No OneTemporary

D20847.id.diff

Index: head/sys/vm/swap_pager.c
===================================================================
--- head/sys/vm/swap_pager.c
+++ head/sys/vm/swap_pager.c
@@ -523,7 +523,7 @@
* but it isn't very efficient).
*
* The nsw_cluster_max is constrained by the bp->b_pages[]
- * array (MAXPHYS/PAGE_SIZE) and our locally defined
+ * array MAXPHYS / PAGE_SIZE and our locally defined
* MAX_PAGEOUT_CLUSTER. Also be aware that swap ops are
* constrained by the swap device interleave stripe size.
*
@@ -538,7 +538,7 @@
* have one NFS swap device due to the command/ack latency over NFS.
* So it all works out pretty well.
*/
- nsw_cluster_max = min((MAXPHYS/PAGE_SIZE), MAX_PAGEOUT_CLUSTER);
+ nsw_cluster_max = min(MAXPHYS / PAGE_SIZE, MAX_PAGEOUT_CLUSTER);
nsw_wcount_async = 4;
nsw_wcount_async_max = nsw_wcount_async;
Index: head/sys/vm/vm_pageout.c
===================================================================
--- head/sys/vm/vm_pageout.c
+++ head/sys/vm/vm_pageout.c
@@ -1972,7 +1972,7 @@
vmd->vmd_free_min = 4 + (vmd->vmd_page_count - 1024) / 200;
else
vmd->vmd_free_min = 4;
- vmd->vmd_pageout_free_min = (2*MAXBSIZE)/PAGE_SIZE +
+ vmd->vmd_pageout_free_min = 2 * MAXBSIZE / PAGE_SIZE +
vmd->vmd_interrupt_free_min;
vmd->vmd_free_reserved = vm_pageout_page_count +
vmd->vmd_pageout_free_min + (vmd->vmd_page_count / 768);
Index: head/sys/vm/vnode_pager.c
===================================================================
--- head/sys/vm/vnode_pager.c
+++ head/sys/vm/vnode_pager.c
@@ -544,8 +544,8 @@
*rtaddress += voffset / DEV_BSIZE;
if (run) {
*run += 1;
- *run *= bsize/PAGE_SIZE;
- *run -= voffset/PAGE_SIZE;
+ *run *= bsize / PAGE_SIZE;
+ *run -= voffset / PAGE_SIZE;
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 1:05 AM (16 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30740140
Default Alt Text
D20847.id.diff (1 KB)

Event Timeline