diff options
author | phk <phk@FreeBSD.org> | 2000-03-13 10:47:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-03-13 10:47:24 +0000 |
commit | bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6 (patch) | |
tree | 4e25b953815e324e4bf203791602f7bd097a647b | |
parent | 8e89e2d03f02f781ce162589fb0704e91d884725 (diff) | |
download | FreeBSD-src-bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6.zip FreeBSD-src-bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6.tar.gz |
Remove unused 3rd argument from vsunlock() which abused B_WRITE.
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 | ||||
-rw-r--r-- | sys/vm/vm_extern.h | 2 | ||||
-rw-r--r-- | sys/vm/vm_glue.c | 6 |
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); } |