Searched refs:mctz (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/mm/
H A Dmemcontrol.c499 struct mem_cgroup_tree_per_zone *mctz, __mem_cgroup_insert_exceeded()
502 struct rb_node **p = &mctz->rb_root.rb_node; __mem_cgroup_insert_exceeded()
526 rb_insert_color(&mz->tree_node, &mctz->rb_root); __mem_cgroup_insert_exceeded()
531 struct mem_cgroup_tree_per_zone *mctz) __mem_cgroup_remove_exceeded()
535 rb_erase(&mz->tree_node, &mctz->rb_root); __mem_cgroup_remove_exceeded()
540 struct mem_cgroup_tree_per_zone *mctz) mem_cgroup_remove_exceeded()
544 spin_lock_irqsave(&mctz->lock, flags); mem_cgroup_remove_exceeded()
545 __mem_cgroup_remove_exceeded(mz, mctz); mem_cgroup_remove_exceeded()
546 spin_unlock_irqrestore(&mctz->lock, flags); mem_cgroup_remove_exceeded()
565 struct mem_cgroup_tree_per_zone *mctz; mem_cgroup_update_tree() local
567 mctz = soft_limit_tree_from_page(page); mem_cgroup_update_tree()
582 spin_lock_irqsave(&mctz->lock, flags); mem_cgroup_update_tree()
585 __mem_cgroup_remove_exceeded(mz, mctz); mem_cgroup_update_tree()
590 __mem_cgroup_insert_exceeded(mz, mctz, excess); mem_cgroup_update_tree()
591 spin_unlock_irqrestore(&mctz->lock, flags); mem_cgroup_update_tree()
598 struct mem_cgroup_tree_per_zone *mctz; mem_cgroup_remove_from_trees() local
605 mctz = soft_limit_tree_node_zone(nid, zid); for_each_node()
606 mem_cgroup_remove_exceeded(mz, mctz); for_each_node()
612 __mem_cgroup_largest_soft_limit_node(struct mem_cgroup_tree_per_zone *mctz) __mem_cgroup_largest_soft_limit_node() argument
619 rightmost = rb_last(&mctz->rb_root); __mem_cgroup_largest_soft_limit_node()
629 __mem_cgroup_remove_exceeded(mz, mctz); __mem_cgroup_largest_soft_limit_node()
638 mem_cgroup_largest_soft_limit_node(struct mem_cgroup_tree_per_zone *mctz) mem_cgroup_largest_soft_limit_node() argument
642 spin_lock_irq(&mctz->lock); mem_cgroup_largest_soft_limit_node()
643 mz = __mem_cgroup_largest_soft_limit_node(mctz); mem_cgroup_largest_soft_limit_node()
644 spin_unlock_irq(&mctz->lock); mem_cgroup_largest_soft_limit_node()
2644 struct mem_cgroup_tree_per_zone *mctz; mem_cgroup_soft_limit_reclaim() local
2651 mctz = soft_limit_tree_node_zone(zone_to_nid(zone), zone_idx(zone)); mem_cgroup_soft_limit_reclaim()
2661 mz = mem_cgroup_largest_soft_limit_node(mctz); mem_cgroup_soft_limit_reclaim()
2670 spin_lock_irq(&mctz->lock); mem_cgroup_soft_limit_reclaim()
2671 __mem_cgroup_remove_exceeded(mz, mctz); mem_cgroup_soft_limit_reclaim()
2679 next_mz = __mem_cgroup_largest_soft_limit_node(mctz); mem_cgroup_soft_limit_reclaim()
2691 __mem_cgroup_insert_exceeded(mz, mctz, excess); mem_cgroup_soft_limit_reclaim()
2692 spin_unlock_irq(&mctz->lock); mem_cgroup_soft_limit_reclaim()
498 __mem_cgroup_insert_exceeded(struct mem_cgroup_per_zone *mz, struct mem_cgroup_tree_per_zone *mctz, unsigned long new_usage_in_excess) __mem_cgroup_insert_exceeded() argument
530 __mem_cgroup_remove_exceeded(struct mem_cgroup_per_zone *mz, struct mem_cgroup_tree_per_zone *mctz) __mem_cgroup_remove_exceeded() argument
539 mem_cgroup_remove_exceeded(struct mem_cgroup_per_zone *mz, struct mem_cgroup_tree_per_zone *mctz) mem_cgroup_remove_exceeded() argument

Completed in 68 milliseconds