Fixup the build after r284215.

Submitted by:	Ivan Klymenko <fidaj ukr.net> [slighly modified]
This commit is contained in:
Mateusz Guzik 2015-06-10 12:39:01 +00:00
parent f6f6d24062
commit 21de5aea6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284217
2 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ linux_mmap2(struct thread *td, struct linux_mmap2_args *args)
*/
PROC_LOCK(p);
p->p_vmspace->vm_maxsaddr = (char *)USRSTACK -
lim_cur(p, RLIMIT_STACK);
lim_cur_proc(p, RLIMIT_STACK);
PROC_UNLOCK(p);
}

View File

@ -335,9 +335,9 @@ sys_getdtablesize(struct thread *td, struct getdtablesize_args *uap)
td->td_retval[0] =
min((int)lim_cur(td, RLIMIT_NOFILE), maxfilesperproc);
#ifdef RACCT
PROC_LOCK(p);
PROC_LOCK(td->td_proc);
lim = racct_get_limit(td->td_proc, RACCT_NOFILE);
PROC_UNLOCK(p);
PROC_UNLOCK(td->td_proc);
if (lim < td->td_retval[0])
td->td_retval[0] = lim;
#endif