Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2018 22:06:32 +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: r334863 - head/sys/kern
Message-ID:  <201806082206.w58M6WsF030988@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: mjg
Date: Fri Jun  8 22:06:32 2018
New Revision: 334863
URL: https://svnweb.freebsd.org/changeset/base/334863

Log:
  counter: add a bit missed in r334858
  
  It happens to be a noop.

Modified:
  head/sys/kern/subr_counter.c

Modified: head/sys/kern/subr_counter.c
==============================================================================
--- head/sys/kern/subr_counter.c	Fri Jun  8 21:49:19 2018	(r334862)
+++ head/sys/kern/subr_counter.c	Fri Jun  8 22:06:32 2018	(r334863)
@@ -62,7 +62,7 @@ counter_u64_alloc(int flags)
 {
 	counter_u64_t r;
 
-	r = uma_zalloc(pcpu_zone_64, flags & ~M_ZERO);
+	r = uma_zalloc_pcpu(pcpu_zone_64, flags);
 	if (r != NULL)
 		counter_u64_zero(r);
 
@@ -73,7 +73,7 @@ void
 counter_u64_free(counter_u64_t c)
 {
 
-	uma_zfree(pcpu_zone_64, c);
+	uma_zfree_pcpu(pcpu_zone_64, c);
 }
 
 int



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201806082206.w58M6WsF030988>