diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
| commit | b40ce4165d5eb3a5de1515245055350ae3dbab8e (patch) | |
| tree | b1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/vm/vm_unix.c | |
| parent | 9b36a30ee46a7766f269fe832ef3a2daa2ec04f0 (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_unix.c')
| -rw-r--r-- | sys/vm/vm_unix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 10a5f657c69d..47a768f618dc 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -70,11 +70,11 @@ struct obreak_args { */ /* ARGSUSED */ int -obreak(p, uap) - struct proc *p; +obreak(td, uap) + struct thread *td; struct obreak_args *uap; { - struct vmspace *vm = p->p_vmspace; + struct vmspace *vm = td->td_proc->p_vmspace; vm_offset_t new, old, base; int rv; int error = 0; @@ -90,7 +90,7 @@ obreak(p, uap) * reduce their usage, even if they remain over the limit. */ if (new > old && - (new - base) > (unsigned) p->p_rlimit[RLIMIT_DATA].rlim_cur) { + (new - base) > (unsigned) td->td_proc->p_rlimit[RLIMIT_DATA].rlim_cur) { error = ENOMEM; goto done; } @@ -143,8 +143,8 @@ struct ovadvise_args { */ /* ARGSUSED */ int -ovadvise(p, uap) - struct proc *p; +ovadvise(td, uap) + struct thread *td; struct ovadvise_args *uap; { /* START_GIANT_OPTIONAL */ |
