Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2012 08:03:33 +0000 (UTC)
From:      Andrey Zonov <zont@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239895 - head/sys/vm
Message-ID:  <201208300803.q7U83XIW004013@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zont
Date: Thu Aug 30 08:03:33 2012
New Revision: 239895
URL: http://svn.freebsd.org/changeset/base/239895

Log:
  - Remove accounting of locked memory from vsunlock(9) that I missed in r239818.
  
  Approved by:	kib (mentor)

Modified:
  head/sys/vm/vm_glue.c

Modified: head/sys/vm/vm_glue.c
==============================================================================
--- head/sys/vm/vm_glue.c	Thu Aug 30 07:45:25 2012	(r239894)
+++ head/sys/vm/vm_glue.c	Thu Aug 30 08:03:33 2012	(r239895)
@@ -224,13 +224,6 @@ vsunlock(void *addr, size_t len)
 	(void)vm_map_unwire(&curproc->p_vmspace->vm_map,
 	    trunc_page((vm_offset_t)addr), round_page((vm_offset_t)addr + len),
 	    VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES);
-
-#ifdef RACCT
-	PROC_LOCK(curproc);
-	racct_set(curproc, RACCT_MEMLOCK,
-	    ptoa(pmap_wired_count(vm_map_pmap(&curproc->p_vmspace->vm_map))));
-	PROC_UNLOCK(curproc);
-#endif
 }
 
 /*



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