svn commit: r295481 - head/sys/sys

Gleb Smirnoff glebius at FreeBSD.org
Wed Feb 10 18:36:53 UTC 2016


Author: glebius
Date: Wed Feb 10 18:36:51 2016
New Revision: 295481
URL: https://svnweb.freebsd.org/changeset/base/295481

Log:
  Garbage collect m_getclr().

Modified:
  head/sys/sys/mbuf.h

Modified: head/sys/sys/mbuf.h
==============================================================================
--- head/sys/sys/mbuf.h	Wed Feb 10 18:29:37 2016	(r295480)
+++ head/sys/sys/mbuf.h	Wed Feb 10 18:36:51 2016	(r295481)
@@ -647,23 +647,6 @@ m_get(int how, short type)
 	return (uma_zalloc_arg(zone_mbuf, &args, how));
 }
 
-/*
- * XXX This should be deprecated, very little use.
- */
-static __inline struct mbuf *
-m_getclr(int how, short type)
-{
-	struct mbuf *m;
-	struct mb_args args;
-
-	args.flags = 0;
-	args.type = type;
-	m = uma_zalloc_arg(zone_mbuf, &args, how);
-	if (m != NULL)
-		bzero(m->m_data, MLEN);
-	return (m);
-}
-
 static __inline struct mbuf *
 m_gethdr(int how, short type)
 {


More information about the svn-src-head mailing list