|
@@ -2012,7 +2012,7 @@ static int shmem_parse_options(char *options, int *mode, uid_t *uid,
|
|
}
|
|
}
|
|
if (*rest)
|
|
if (*rest)
|
|
goto bad_val;
|
|
goto bad_val;
|
|
- *blocks = size >> PAGE_CACHE_SHIFT;
|
|
|
|
|
|
+ *blocks = DIV_ROUND_UP(size, PAGE_CACHE_SIZE);
|
|
} else if (!strcmp(this_char,"nr_blocks")) {
|
|
} else if (!strcmp(this_char,"nr_blocks")) {
|
|
*blocks = memparse(value,&rest);
|
|
*blocks = memparse(value,&rest);
|
|
if (*rest)
|
|
if (*rest)
|