Change comment to match code.
Discussed with: thompsa Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a3478d8cfd
commit
bc2308d49e
@ -1320,8 +1320,8 @@ mdcreate_swap(struct md_s *sc, struct md_ioctl *mdio, struct thread *td)
|
|||||||
int error;
|
int error;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Range check. Disallow negative sizes or any size less then the
|
* Range check. Disallow negative sizes and sizes not being
|
||||||
* size of a page. Then round to a page.
|
* multiple of page size.
|
||||||
*/
|
*/
|
||||||
if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
|
if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
|
||||||
return (EDOM);
|
return (EDOM);
|
||||||
@ -1362,8 +1362,8 @@ mdcreate_null(struct md_s *sc, struct md_ioctl *mdio, struct thread *td)
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Range check. Disallow negative sizes or any size less then the
|
* Range check. Disallow negative sizes and sizes not being
|
||||||
* size of a page. Then round to a page.
|
* multiple of page size.
|
||||||
*/
|
*/
|
||||||
if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
|
if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0)
|
||||||
return (EDOM);
|
return (EDOM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user