Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ancels all extra charges on mc.from and mc.to, and wakes up all waiters.

Proto:static void __mem_cgroup_clear_mc(void)

Type:void

Parameter:Nothing

5542  from = from
5543  to = to
5546  If precharge Then
5547  cancel_charge(to, precharge)
5548  precharge = 0
5554  If moved_charge Then
5555  cancel_charge(from, moved_charge)
5556  moved_charge = 0
5559  If moved_swap Then
5561  If Not mem_cgroup_is_root(from) Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
5564  mem_cgroup_id_put_many(from, moved_swap)
5570  If Not mem_cgroup_is_root(to) Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
5573  mem_cgroup_id_get_many(to, moved_swap)
5574  ss_put_many - put css references*@css: target css*@n: number of references to put* Put references obtained via css_get() and css_tryget_online().
5576  moved_swap = 0
5578  memcg_oom_recover(from)
5579  memcg_oom_recover(to)
5580  wake_up_all( & a waitq for other context )
Caller
NameDescribe
mem_cgroup_clear_mc
mem_cgroup_move_charge