svn commit: r258916 - head/sys/dev/md

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Dec 4 09:48:52 UTC 2013


Author: trasz
Date: Wed Dec  4 09:48:52 2013
New Revision: 258916
URL: http://svnweb.freebsd.org/changeset/base/258916

Log:
  Change comment to match code.
  
  Discussed with:	thompsa
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/md/md.c

Modified: head/sys/dev/md/md.c
==============================================================================
--- head/sys/dev/md/md.c	Wed Dec  4 09:46:27 2013	(r258915)
+++ head/sys/dev/md/md.c	Wed Dec  4 09:48:52 2013	(r258916)
@@ -1320,8 +1320,8 @@ mdcreate_swap(struct md_s *sc, struct md
 	int error;
 
 	/*
-	 * Range check.  Disallow negative sizes or any size less then the
-	 * size of a page.  Then round to a page.
+	 * Range check.  Disallow negative sizes and sizes not being
+	 * multiple of page size.
 	 */
 	if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
 		return (EDOM);
@@ -1362,8 +1362,8 @@ mdcreate_null(struct md_s *sc, struct md
 {
 
 	/*
-	 * Range check.  Disallow negative sizes or any size less then the
-	 * size of a page.  Then round to a page.
+	 * Range check.  Disallow negative sizes and sizes not being
+	 * multiple of page size.
 	 */
 	if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
 		return (EDOM);


More information about the svn-src-head mailing list