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
b6f9411
..
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.
9 82/09/06
*/
+/* vm_swap.c 4.
12 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)
);
}
/*
}
/*
@@
-115,7
+115,7
@@
swfree(index)
int index;
{
register swblk_t vsbase;
int index;
{
register swblk_t vsbase;
- register
int
blk;
+ register
long
blk;
swdevt[index].sw_freed = 1;
for (vsbase = index*DMMAX; vsbase < nswap; vsbase += nswdev*DMMAX) {
swdevt[index].sw_freed = 1;
for (vsbase = index*DMMAX; vsbase < nswap; vsbase += nswdev*DMMAX) {
@@
-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);
}