Remove unused 3rd argument from vsunlock() which abused B_WRITE.
This commit is contained in:
parent
d8b47cbb70
commit
7de472559c
@ -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;
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user