summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-05-31 00:38:04 +0000
committerdyson <dyson@FreeBSD.org>1996-05-31 00:38:04 +0000
commit65214cd0c8fbe9d65c224d853573549dba9406fa (patch)
treed0c35b0aabebb0e4f78ad9db2efdb29f9ed4b272 /sys/vm/vm_object.c
parenta6023afadfbb05340c7296f1384561e1ecce012e (diff)
downloadFreeBSD-src-65214cd0c8fbe9d65c224d853573549dba9406fa.zip
FreeBSD-src-65214cd0c8fbe9d65c224d853573549dba9406fa.tar.gz
This commit is dual-purpose, to fix more of the pageout daemon
queue corruption problems, and to apply Gary Palmer's code cleanups. David Greenman helped with these problems also. There is still a hang problem using X in small memory machines.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index c5ce5c3..2916ee8e 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.73 1996/05/23 00:45:58 dyson Exp $
+ * $Id: vm_object.c,v 1.74 1996/05/24 05:17:21 dyson Exp $
*/
/*
@@ -263,7 +263,6 @@ vm_object_deallocate(object)
vm_object_t object;
{
vm_object_t temp;
- vm_page_t p;
while (object != NULL) {
@@ -510,6 +509,7 @@ rescan:
}
splx(s);
+ s = splvm();
maxf = 0;
for(i=1;i<vm_pageout_page_count;i++) {
if (tp = vm_page_lookup(object, pi + i)) {
@@ -576,6 +576,7 @@ rescan:
vm_page_protect(ma[index], VM_PROT_READ);
}
runlen = maxb + maxf + 1;
+ splx(s);
/*
printf("maxb: %d, maxf: %d, runlen: %d, offset: %d\n", maxb, maxf, runlen, ma[0]->pindex);
*/
OpenPOWER on IntegriCloud