• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/mm/

Lines Matching defs:cgroup

26 #include <linux/cgroup.h>
62 /* Turned on only when memory cgroup is enabled && really_do_swap_account = 1 */
80 * Statistics for memory cgroup.
106 * spin_lock to protect the per cgroup LRU
187 * page cache and RSS per cgroup. We would eventually like to provide
193 * no reclaim occurs from a cgroup at it's low water mark, this is
207 * Per cgroup active and inactive list, similar to the
621 static struct mem_cgroup *mem_cgroup_from_cont(struct cgroup *cont)
650 * cgroup. We use css_tryget() here even if this looks
664 * Call callback function against all cgroup under hierarchy tree.
855 * enabled in "curr" and "curr" is a child of "mem" in *cgroup*
1041 struct cgroup *cgrp = memcg->css.cgroup;
1105 * @memcg: The memory cgroup that went over limit
1113 struct cgroup *task_cgrp;
1114 struct cgroup *mem_cgrp;
1129 mem_cgrp = memcg->css.cgroup;
1201 * of the cgroup list, since we track last_scanned_child) of @mem and use
1287 * coming back to reclaim from this cgroup
1297 /* this cgroup's local usage == 0 */
1301 /* we use swappiness of local cgroup */
1502 struct mem_cgroup *cached; /* this never be root cgroup */
1512 * cgroup which is not current target, returns false. This stock will be
1667 * moved to swap cache or just unmapped from the cgroup.
1669 * current usage of the cgroup before giving up
1713 * We always charge the cgroup the mm_struct belongs to.
1957 * This function doesn't do "charge" nor css_get to new cgroup. It should be
1959 * true, this function does "uncharge" from old cgroup, but it doesn't if
2027 struct cgroup *cg = child->css.cgroup;
2028 struct cgroup *pcg = cg->parent;
2062 * < 0 if the cgroup is over its limit
2249 * At swapin, we may charge account against cgroup which has no tasks.
2291 * the same cgroup and we have chance to coalesce uncharges.
2705 * At migration, we may charge account against cgroup which has no
2902 * If we failed to reclaim anything from this memory cgroup
2903 * it is time to move on to the next cgroup
2916 * NULL if no other cgroup is present on
3022 struct cgroup *cgrp = mem->css.cgroup;
3056 /* it seems parent cgroup doesn't have enough mem */
3072 /* we call try-to-free pages for make this cgroup empty */
3074 /* try to free all pages in this cgroup */
3097 int mem_cgroup_force_empty_write(struct cgroup *cont, unsigned int event)
3103 static u64 mem_cgroup_hierarchy_read(struct cgroup *cont, struct cftype *cft)
3108 static int mem_cgroup_hierarchy_write(struct cgroup *cont, struct cftype *cft,
3113 struct cgroup *parent = cont->parent;
3123 * occur, provided the current cgroup has no children.
3125 * For the root cgroup, parent_mem is NULL, we allow value to be
3190 static u64 mem_cgroup_read(struct cgroup *cont, struct cftype *cft)
3221 static int mem_cgroup_write(struct cgroup *cont, struct cftype *cft,
3270 struct cgroup *cgroup;
3275 cgroup = memcg->css.cgroup;
3279 while (cgroup->parent) {
3280 cgroup = cgroup->parent;
3281 memcg = mem_cgroup_from_cont(cgroup);
3295 static int mem_cgroup_reset(struct cgroup *cont, unsigned int event)
3321 static u64 mem_cgroup_move_charge_read(struct cgroup *cgrp,
3328 static int mem_cgroup_move_charge_write(struct cgroup *cgrp,
3337 * attach(), so we need cgroup lock to prevent this value from being
3347 static int mem_cgroup_move_charge_write(struct cgroup *cgrp,
3434 static int mem_control_stat_show(struct cgroup *cont, struct cftype *cft,
3499 static u64 mem_cgroup_swappiness_read(struct cgroup *cgrp, struct cftype *cft)
3506 static int mem_cgroup_swappiness_write(struct cgroup *cgrp, struct cftype *cft,
3622 static int mem_cgroup_usage_register_event(struct cgroup *cgrp,
3704 static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp,
3780 static int mem_cgroup_oom_register_event(struct cgroup *cgrp,
3805 static void mem_cgroup_oom_unregister_event(struct cgroup *cgrp,
3826 static int mem_cgroup_oom_control_read(struct cgroup *cgrp,
3840 static int mem_cgroup_oom_control_write(struct cgroup *cgrp,
3846 /* cannot set to root cgroup and only 0 and 1 are allowed */
3960 static int register_memsw_files(struct cgroup *cont, struct cgroup_subsys *ss)
3968 static int register_memsw_files(struct cgroup *cont, struct cgroup_subsys *ss)
4047 * Removal of cgroup itself succeeds regardless of refs from swap.
4135 mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
4200 struct cgroup *cont)
4208 struct cgroup *cont)
4216 struct cgroup *cont)
4493 /* uncharge swap account from the old cgroup */
4527 struct cgroup *cgroup,
4532 struct mem_cgroup *mem = mem_cgroup_from_cont(cgroup);
4581 struct cgroup *cgroup,
4685 struct cgroup *cont,
4686 struct cgroup *old_cont,
4699 struct cgroup *cgroup,
4706 struct cgroup *cgroup,
4712 struct cgroup *cont,
4713 struct cgroup *old_cont,