Lines Matching refs:children
292 char *children[4] = {NULL};
343 for (i = 0; i < ARRAY_SIZE(children); i++) {
344 children[i] = cg_name_indexed(parent[1], "child_memcg", i);
345 if (!children[i])
348 if (cg_create(children[i]))
354 cg_run_nowait(children[i], alloc_pagecache_50M_noexit,
360 if (cg_write(children[0], attribute, "75M"))
362 if (cg_write(children[1], attribute, "25M"))
364 if (cg_write(children[2], attribute, "0"))
366 if (cg_write(children[3], attribute, "500M"))
383 for (i = 0; i < ARRAY_SIZE(children); i++)
384 c[i] = cg_read_long(children[i], "memory.current");
408 if (!reclaim_until(children[0], MB(10)))
416 for (i = 0; i < ARRAY_SIZE(children); i++) {
420 oom = cg_read_key_long(children[i], "memory.events", "oom ");
421 low = cg_read_key_long(children[i], "memory.events", "low ");
435 for (i = ARRAY_SIZE(children) - 1; i >= 0; i--) {
436 if (!children[i])
439 cg_destroy(children[i]);
440 free(children[i]);
1161 * count OOM events in its children groups. Otherwise, it should not