summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sysctl.c4
-rw-r--r--sys/vm/vm_extern.h2
-rw-r--r--sys/vm/vm_glue.c6
3 files changed, 4 insertions, 8 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index a1fab08..c84737d 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -628,7 +628,7 @@ kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *oldle
error = sysctl_root(0, name, namelen, &req);
if (req.lock == 2)
- vsunlock(req.oldptr, req.oldlen, B_WRITE);
+ vsunlock(req.oldptr, req.oldlen);
memlock.sl_lock = 0;
@@ -873,7 +873,7 @@ userland_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *old
req = req2;
if (req.lock == 2)
- vsunlock(req.oldptr, req.oldlen, B_WRITE);
+ vsunlock(req.oldptr, req.oldlen);
memlock.sl_lock = 0;
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index a473af9..307192f 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -92,7 +92,7 @@ void vmspace_unshare __P((struct proc *));
void vmspace_free __P((struct vmspace *));
void vnode_pager_setsize __P((struct vnode *, vm_ooffset_t));
void vslock __P((caddr_t, u_int));
-void vsunlock __P((caddr_t, u_int, int));
+void vsunlock __P((caddr_t, u_int));
void vm_object_print __P((/* db_expr_t */ long, boolean_t, /* db_expr_t */ long,
char *));
int vm_fault_quick __P((caddr_t v, int prot));
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 7aa092d..0749df3 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -182,14 +182,10 @@ vslock(addr, len)
}
void
-vsunlock(addr, len, dirtied)
+vsunlock(addr, len)
caddr_t addr;
u_int len;
- int dirtied;
{
-#ifdef lint
- dirtied++;
-#endif /* lint */
vm_map_pageable(&curproc->p_vmspace->vm_map, trunc_page((vm_offset_t)addr),
round_page((vm_offset_t)addr + len), TRUE);
}
OpenPOWER on IntegriCloud