From owner-svn-src-head@FreeBSD.ORG Mon Oct 29 10:04:29 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63C73219; Mon, 29 Oct 2012 10:04:29 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4935F8FC12; Mon, 29 Oct 2012 10:04:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9TA4TUp036974; Mon, 29 Oct 2012 10:04:29 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9TA4T2R036971; Mon, 29 Oct 2012 10:04:29 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201210291004.q9TA4T2R036971@svn.freebsd.org> From: Kevin Lo Date: Mon, 29 Oct 2012 10:04:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242304 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 10:04:29 -0000 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.