]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/res_counter.c
memcg: rename RESOURCE_MAX to RES_COUNTER_MAX
[karo-tx-linux.git] / kernel / res_counter.c
index ff55247e7049aeaf08fcf2d058ef6e5d5d20d76b..3f0417f97e7665f514b73280e4bbff2e9608f96a 100644 (file)
@@ -17,8 +17,8 @@
 void res_counter_init(struct res_counter *counter, struct res_counter *parent)
 {
        spin_lock_init(&counter->lock);
-       counter->limit = RESOURCE_MAX;
-       counter->soft_limit = RESOURCE_MAX;
+       counter->limit = RES_COUNTER_MAX;
+       counter->soft_limit = RES_COUNTER_MAX;
        counter->parent = parent;
 }
 
@@ -182,12 +182,12 @@ int res_counter_memparse_write_strategy(const char *buf,
 {
        char *end;
 
-       /* return RESOURCE_MAX(unlimited) if "-1" is specified */
+       /* return RES_COUNTER_MAX(unlimited) if "-1" is specified */
        if (*buf == '-') {
                *res = simple_strtoull(buf + 1, &end, 10);
                if (*res != 1 || *end != '\0')
                        return -EINVAL;
-               *res = RESOURCE_MAX;
+               *res = RES_COUNTER_MAX;
                return 0;
        }