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;
|
||||
|
||||
/*
|
||||
* 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_ioctl *mdio, struct thread *td)
|
||||
{
|
||||
|
||||
/*
|
||||
* 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user