• Home
  • Raw
  • Download

Lines Matching refs:mctz

607 					 struct mem_cgroup_tree_per_node *mctz,  in __mem_cgroup_insert_exceeded()  argument
610 struct rb_node **p = &mctz->rb_root.rb_node; in __mem_cgroup_insert_exceeded()
639 mctz->rb_rightmost = &mz->tree_node; in __mem_cgroup_insert_exceeded()
642 rb_insert_color(&mz->tree_node, &mctz->rb_root); in __mem_cgroup_insert_exceeded()
647 struct mem_cgroup_tree_per_node *mctz) in __mem_cgroup_remove_exceeded() argument
652 if (&mz->tree_node == mctz->rb_rightmost) in __mem_cgroup_remove_exceeded()
653 mctz->rb_rightmost = rb_prev(&mz->tree_node); in __mem_cgroup_remove_exceeded()
655 rb_erase(&mz->tree_node, &mctz->rb_root); in __mem_cgroup_remove_exceeded()
660 struct mem_cgroup_tree_per_node *mctz) in mem_cgroup_remove_exceeded() argument
664 spin_lock_irqsave(&mctz->lock, flags); in mem_cgroup_remove_exceeded()
665 __mem_cgroup_remove_exceeded(mz, mctz); in mem_cgroup_remove_exceeded()
666 spin_unlock_irqrestore(&mctz->lock, flags); in mem_cgroup_remove_exceeded()
685 struct mem_cgroup_tree_per_node *mctz; in mem_cgroup_update_tree() local
687 mctz = soft_limit_tree_from_page(page); in mem_cgroup_update_tree()
688 if (!mctz) in mem_cgroup_update_tree()
704 spin_lock_irqsave(&mctz->lock, flags); in mem_cgroup_update_tree()
707 __mem_cgroup_remove_exceeded(mz, mctz); in mem_cgroup_update_tree()
712 __mem_cgroup_insert_exceeded(mz, mctz, excess); in mem_cgroup_update_tree()
713 spin_unlock_irqrestore(&mctz->lock, flags); in mem_cgroup_update_tree()
720 struct mem_cgroup_tree_per_node *mctz; in mem_cgroup_remove_from_trees() local
726 mctz = soft_limit_tree_node(nid); in mem_cgroup_remove_from_trees()
727 if (mctz) in mem_cgroup_remove_from_trees()
728 mem_cgroup_remove_exceeded(mz, mctz); in mem_cgroup_remove_from_trees()
733 __mem_cgroup_largest_soft_limit_node(struct mem_cgroup_tree_per_node *mctz) in __mem_cgroup_largest_soft_limit_node() argument
739 if (!mctz->rb_rightmost) in __mem_cgroup_largest_soft_limit_node()
742 mz = rb_entry(mctz->rb_rightmost, in __mem_cgroup_largest_soft_limit_node()
749 __mem_cgroup_remove_exceeded(mz, mctz); in __mem_cgroup_largest_soft_limit_node()
758 mem_cgroup_largest_soft_limit_node(struct mem_cgroup_tree_per_node *mctz) in mem_cgroup_largest_soft_limit_node() argument
762 spin_lock_irq(&mctz->lock); in mem_cgroup_largest_soft_limit_node()
763 mz = __mem_cgroup_largest_soft_limit_node(mctz); in mem_cgroup_largest_soft_limit_node()
764 spin_unlock_irq(&mctz->lock); in mem_cgroup_largest_soft_limit_node()
3435 struct mem_cgroup_tree_per_node *mctz; in mem_cgroup_soft_limit_reclaim() local
3442 mctz = soft_limit_tree_node(pgdat->node_id); in mem_cgroup_soft_limit_reclaim()
3449 if (!mctz || RB_EMPTY_ROOT(&mctz->rb_root)) in mem_cgroup_soft_limit_reclaim()
3461 mz = mem_cgroup_largest_soft_limit_node(mctz); in mem_cgroup_soft_limit_reclaim()
3470 spin_lock_irq(&mctz->lock); in mem_cgroup_soft_limit_reclaim()
3471 __mem_cgroup_remove_exceeded(mz, mctz); in mem_cgroup_soft_limit_reclaim()
3479 next_mz = __mem_cgroup_largest_soft_limit_node(mctz); in mem_cgroup_soft_limit_reclaim()
3491 __mem_cgroup_insert_exceeded(mz, mctz, excess); in mem_cgroup_soft_limit_reclaim()
3492 spin_unlock_irq(&mctz->lock); in mem_cgroup_soft_limit_reclaim()