Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2014 04:28:49 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262328 - head/sys/kern
Message-ID:  <201402220428.s1M4SnAO041893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sat Feb 22 04:28:49 2014
New Revision: 262328
URL: http://svnweb.freebsd.org/changeset/base/262328

Log:
  Fix style of comment blocks.
  
  Reported by:	peter
  Approved by:	bapt (mentor, implicit)
  X-MFC with:	r262006

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Sat Feb 22 03:36:45 2014	(r262327)
+++ head/sys/kern/kern_descrip.c	Sat Feb 22 04:28:49 2014	(r262328)
@@ -1533,9 +1533,11 @@ fdgrowtable(struct filedesc *fdp, int nf
 	memcpy(ntable, otable, onfiles * sizeof(*otable));
 	fdp->fd_ofiles = ntable;
 
-	/* Allocate a new map only if the old is not large enough.  It will
+	/*
+	 * Allocate a new map only if the old is not large enough.  It will
 	 * grow at a slower rate than the table as it can map more
-	 * entries than the table can hold. */
+	 * entries than the table can hold.
+	 */
 	if (NDSLOTS(nnfiles) > NDSLOTS(onfiles)) {
 		nmap = malloc(NDSLOTS(nnfiles) * NDSLOTSIZE, M_FILEDESC,
 		    M_ZERO | M_WAITOK);
@@ -1568,9 +1570,11 @@ fdgrowtable(struct filedesc *fdp, int nf
 		ft->ft_table = otable;
 		SLIST_INSERT_HEAD(&fdp0->fd_free, ft, ft_next);
 	}
-	/* The map does not have the same possibility of threads still
+	/*
+	 * The map does not have the same possibility of threads still
 	 * holding references to it.  So always free it as long as it
-	 * does not reference the original static allocation. */
+	 * does not reference the original static allocation.
+	 */
 	if (NDSLOTS(onfiles) > NDSLOTS(NDFILE))
 		free(omap, M_FILEDESC);
 }



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