Date: Wed, 4 Dec 2013 09:48:52 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258916 - head/sys/dev/md Message-ID: <201312040948.rB49mq2u053486@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312040948.rB49mq2u053486>