aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index ce64b6616376..7be94342bf06 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2012,7 +2012,7 @@ static int shmem_parse_options(char *options, int *mode, uid_t *uid,
2012 } 2012 }
2013 if (*rest) 2013 if (*rest)
2014 goto bad_val; 2014 goto bad_val;
2015 *blocks = size >> PAGE_CACHE_SHIFT; 2015 *blocks = DIV_ROUND_UP(size, PAGE_CACHE_SIZE);
2016 } else if (!strcmp(this_char,"nr_blocks")) { 2016 } else if (!strcmp(this_char,"nr_blocks")) {
2017 *blocks = memparse(value,&rest); 2017 *blocks = memparse(value,&rest);
2018 if (*rest) 2018 if (*rest)