OSDN Git Service

h8300: Don't set CROSS_COMPILE unconditionally
[uclinux-h8/linux.git] / mm / memcontrol.c
index 1fedbde..d9b5c81 100644 (file)
@@ -3387,6 +3387,7 @@ static int __mem_cgroup_usage_register_event(struct mem_cgroup *memcg,
        ret = page_counter_memparse(args, "-1", &threshold);
        if (ret)
                return ret;
+       threshold <<= PAGE_SHIFT;
 
        mutex_lock(&memcg->thresholds_lock);