mm: page_counter: pull "-1" handling out of page_counter_memparse()
[deliverable/linux.git] / mm / memcontrol.c
index dc5c4cd0afdf60adcb4d05c5229fc6d2dbd1d99f..6453ea5a27aace38b9a38814a77455fadf1c105b 100644 (file)
@@ -3414,7 +3414,7 @@ static ssize_t mem_cgroup_write(struct kernfs_open_file *of,
        int ret;
 
        buf = strstrip(buf);
-       ret = page_counter_memparse(buf, &nr_pages);
+       ret = page_counter_memparse(buf, "-1", &nr_pages);
        if (ret)
                return ret;
 
@@ -3786,7 +3786,7 @@ static int __mem_cgroup_usage_register_event(struct mem_cgroup *memcg,
        unsigned long usage;
        int i, size, ret;
 
-       ret = page_counter_memparse(args, &threshold);
+       ret = page_counter_memparse(args, "-1", &threshold);
        if (ret)
                return ret;
 
This page took 0.023928 seconds and 5 git commands to generate.