projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create netif directory
[unix-history]
/
usr
/
src
/
sys
/
vm
/
vm_swap.c
diff --git
a/usr/src/sys/vm/vm_swap.c
b/usr/src/sys/vm/vm_swap.c
index
cac0dc3
..
d1b3f4a
100644
(file)
--- a/
usr/src/sys/vm/vm_swap.c
+++ b/
usr/src/sys/vm/vm_swap.c
@@
-1,4
+1,4
@@
-/* vm_swap.c 4.1
0 82/10/21
*/
+/* vm_swap.c 4.1
2 82/10/22
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-53,7
+53,7
@@
swread(dev, uio)
struct uio *uio;
{
struct uio *uio;
{
-
physio(swstrategy, &rswbuf, dev, B_READ, minphys, uio
);
+
return (physio(swstrategy, &rswbuf, dev, B_READ, minphys, uio)
);
}
swwrite(dev, uio)
}
swwrite(dev, uio)
@@
-61,7
+61,7
@@
swwrite(dev, uio)
struct uio *uio;
{
struct uio *uio;
{
-
physio(swstrategy, &rswbuf, dev, B_WRITE, minphys, uio
);
+
return (physio(swstrategy, &rswbuf, dev, B_WRITE, minphys, uio)
);
}
/*
}
/*
@@
-129,13
+129,14
@@
swfree(index)
* hunk which needs special treatment anyways.
*/
argdev = swdevt[0].sw_dev;
* hunk which needs special treatment anyways.
*/
argdev = swdevt[0].sw_dev;
- rminit(argmap,
blk/2-CLSIZE,
CLSIZE,
+ rminit(argmap,
(long)(blk/2-CLSIZE), (long)
CLSIZE,
"argmap", ARGMAPSIZE);
/*
* First of all chunks... initialize the swapmap
* the second half of the hunk.
*/
"argmap", ARGMAPSIZE);
/*
* First of all chunks... initialize the swapmap
* the second half of the hunk.
*/
- rminit(swapmap, blk/2, blk/2, "swap", nswapmap);
+ rminit(swapmap, (long)blk/2, (long)blk/2,
+ "swap", nswapmap);
} else
rmfree(swapmap, blk, vsbase);
}
} else
rmfree(swapmap, blk, vsbase);
}