Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:08:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__mem_cgroup_insert_exceeded

Proto:static void __mem_cgroup_insert_exceeded(struct mem_cgroup_per_node *mz, struct mem_cgroup_tree_per_node *mctz, unsigned long new_usage_in_excess)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup_per_node *mz
struct mem_cgroup_tree_per_node *mctz
unsigned longnew_usage_in_excess
518  p = rb_node
519  struct rb_node * parent = NULL
521  bool rightmost = true
523  If he soft limit is exceeded Then Return
526  Set to the value by which = new_usage_in_excess
527  If Not Set to the value by which Then Return
529  When p cycle
530  parent = p
531  mz_node = rb_entry(parent, structmem_cgroup_per_node, tree_node)
534  p = rb_left
535  rightmost = false
542  Else if Set to the value by which >= Set to the value by which Then p = rb_right
546  If rightmost Then rb_rightmost = RB tree node
549  rb_link_node( & RB tree node , parent, p)
550  rb_insert_color( & RB tree node , & rb_root)
551  he soft limit is exceeded = true
Caller
NameDescribe
mem_cgroup_update_tree
mem_cgroup_soft_limit_reclaim