Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2015 12:39:01 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284217 - in head/sys: amd64/linux kern
Message-ID:  <201506101239.t5ACd1mf084513@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Jun 10 12:39:01 2015
New Revision: 284217
URL: https://svnweb.freebsd.org/changeset/base/284217

Log:
  Fixup the build after r284215.
  
  Submitted by:	Ivan Klymenko <fidaj ukr.net> [slighly modified]

Modified:
  head/sys/amd64/linux/linux_machdep.c
  head/sys/kern/kern_descrip.c

Modified: head/sys/amd64/linux/linux_machdep.c
==============================================================================
--- head/sys/amd64/linux/linux_machdep.c	Wed Jun 10 12:17:19 2015	(r284216)
+++ head/sys/amd64/linux/linux_machdep.c	Wed Jun 10 12:39:01 2015	(r284217)
@@ -251,7 +251,7 @@ linux_mmap2(struct thread *td, struct li
 			 */
 			PROC_LOCK(p);
 			p->p_vmspace->vm_maxsaddr = (char *)USRSTACK -
-			    lim_cur(p, RLIMIT_STACK);
+			    lim_cur_proc(p, RLIMIT_STACK);
 			PROC_UNLOCK(p);
 		}
 

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Wed Jun 10 12:17:19 2015	(r284216)
+++ head/sys/kern/kern_descrip.c	Wed Jun 10 12:39:01 2015	(r284217)
@@ -335,9 +335,9 @@ sys_getdtablesize(struct thread *td, str
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506101239.t5ACd1mf084513>