summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-06-20 01:47:21 +0000
committerdg <dg@FreeBSD.org>1996-06-20 01:47:21 +0000
commitecc3ffe7bb1bf3ff3209c3b1f35b9f3afb7f39a0 (patch)
treed9d54c342d7e0e859db3744c32d4a5f7f5a8e698 /sys
parentb7dde76ce724a1640316f089d3542f51864e8037 (diff)
downloadFreeBSD-src-ecc3ffe7bb1bf3ff3209c3b1f35b9f3afb7f39a0.zip
FreeBSD-src-ecc3ffe7bb1bf3ff3209c3b1f35b9f3afb7f39a0.tar.gz
Minor KNF formatting change to vmapbuf() and vunmapbuf().
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/vm_machdep.c22
-rw-r--r--sys/i386/i386/vm_machdep.c22
2 files changed, 18 insertions, 26 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index 4d870ed..008f205 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.63 1996/05/18 03:36:22 dyson Exp $
+ * $Id: vm_machdep.c,v 1.64 1996/06/19 03:39:24 dyson Exp $
*/
#include "npx.h"
@@ -692,13 +692,12 @@ vmapbuf(bp)
panic("vmapbuf");
for (v = bp->b_saveaddr, addr = bp->b_data;
- addr < bp->b_data + bp->b_bufsize;
- addr += PAGE_SIZE, v += PAGE_SIZE) {
-
-/*
- * do the vm_fault if needed, do the copy-on-write thing when
- * reading stuff off device into memory.
- */
+ addr < bp->b_data + bp->b_bufsize;
+ addr += PAGE_SIZE, v += PAGE_SIZE) {
+ /*
+ * Do the vm_fault if needed; do the copy-on-write thing
+ * when reading stuff off device into memory.
+ */
vm_fault_quick(addr,
(bp->b_flags&B_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ);
pa = trunc_page(pmap_kextract((vm_offset_t) addr));
@@ -727,14 +726,11 @@ vunmapbuf(bp)
if ((bp->b_flags & B_PHYS) == 0)
panic("vunmapbuf");
- for (addr = bp->b_data;
- addr < bp->b_data + bp->b_bufsize;
- addr += PAGE_SIZE) {
-
+ for (addr = bp->b_data; addr < bp->b_data + bp->b_bufsize;
+ addr += PAGE_SIZE) {
pa = trunc_page(pmap_kextract((vm_offset_t) addr));
pmap_kremove((vm_offset_t) addr);
vm_page_unhold(PHYS_TO_VM_PAGE(pa));
-
}
bp->b_data = bp->b_saveaddr;
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index 4d870ed..008f205 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.63 1996/05/18 03:36:22 dyson Exp $
+ * $Id: vm_machdep.c,v 1.64 1996/06/19 03:39:24 dyson Exp $
*/
#include "npx.h"
@@ -692,13 +692,12 @@ vmapbuf(bp)
panic("vmapbuf");
for (v = bp->b_saveaddr, addr = bp->b_data;
- addr < bp->b_data + bp->b_bufsize;
- addr += PAGE_SIZE, v += PAGE_SIZE) {
-
-/*
- * do the vm_fault if needed, do the copy-on-write thing when
- * reading stuff off device into memory.
- */
+ addr < bp->b_data + bp->b_bufsize;
+ addr += PAGE_SIZE, v += PAGE_SIZE) {
+ /*
+ * Do the vm_fault if needed; do the copy-on-write thing
+ * when reading stuff off device into memory.
+ */
vm_fault_quick(addr,
(bp->b_flags&B_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ);
pa = trunc_page(pmap_kextract((vm_offset_t) addr));
@@ -727,14 +726,11 @@ vunmapbuf(bp)
if ((bp->b_flags & B_PHYS) == 0)
panic("vunmapbuf");
- for (addr = bp->b_data;
- addr < bp->b_data + bp->b_bufsize;
- addr += PAGE_SIZE) {
-
+ for (addr = bp->b_data; addr < bp->b_data + bp->b_bufsize;
+ addr += PAGE_SIZE) {
pa = trunc_page(pmap_kextract((vm_offset_t) addr));
pmap_kremove((vm_offset_t) addr);
vm_page_unhold(PHYS_TO_VM_PAGE(pa));
-
}
bp->b_data = bp->b_saveaddr;
OpenPOWER on IntegriCloud