svn commit: r242304 - head/sys/kern
Kevin Lo
kevlo at FreeBSD.org
Mon Oct 29 10:04:29 UTC 2012
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.
More information about the svn-src-head
mailing list