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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to