Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2012 10:04:29 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242304 - head/sys/kern
Message-ID:  <201210291004.q9TA4T2R036971@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Mon Oct 29 10:04:28 2012
New Revision: 242304
URL: http://svn.freebsd.org/changeset/base/242304

Log:
  Since the macro dtom() has been removed, fix comments about the dtom.
  
  Reviewed by:	glebius

Modified:
  head/sys/kern/kern_mbuf.c
  head/sys/kern/uipc_mbuf.c

Modified: head/sys/kern/kern_mbuf.c
==============================================================================
--- head/sys/kern/kern_mbuf.c	Mon Oct 29 08:16:31 2012	(r242303)
+++ head/sys/kern/kern_mbuf.c	Mon Oct 29 10:04:28 2012	(r242304)
@@ -244,7 +244,7 @@ static void	mb_reclaim(void *);
 static void	mbuf_init(void *);
 static void    *mbuf_jumbo_alloc(uma_zone_t, int, uint8_t *, int);
 
-/* Ensure that MSIZE doesn't break dtom() - it must be a power of 2 */
+/* Ensure that MSIZE must be a power of 2. */
 CTASSERT((((MSIZE - 1) ^ MSIZE) + 1) >> 1 == MSIZE);
 
 /*

Modified: head/sys/kern/uipc_mbuf.c
==============================================================================
--- head/sys/kern/uipc_mbuf.c	Mon Oct 29 08:16:31 2012	(r242303)
+++ head/sys/kern/uipc_mbuf.c	Mon Oct 29 10:04:28 2012	(r242304)
@@ -1000,8 +1000,8 @@ m_adj(struct mbuf *mp, int req_len)
 
 /*
  * Rearange an mbuf chain so that len bytes are contiguous
- * and in the data area of an mbuf (so that mtod and dtom
- * will work for a structure of size len).  Returns the resulting
+ * and in the data area of an mbuf (so that mtod will work
+ * for a structure of size len).  Returns the resulting
  * mbuf chain on success, frees it and returns null on failure.
  * If there is room, it will add up to max_protohdr-len extra bytes to the
  * contiguous region in an attempt to avoid being called next time.



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