Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uncharge_batch

Proto:static void uncharge_batch(const struct uncharge_gather *ug)

Type:void

Parameter:

TypeParameterName
const struct uncharge_gather *ug
6487  nr_pages = nr_anon + nr_file + nr_kmem
6490  If Not mem_cgroup_is_root(memcg) Then
6491  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
6492  If Whether legacy memory+swap accounting is active Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
6494  If Not cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys) && nr_kmem Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
6496  memcg_oom_recover(memcg)
6499  local_irq_save(flags)
6500  __mod_memcg_state - update cgroup memory statistics*@memcg: the memory cgroup*@idx: the stat item - can be enum memcg_stat_item or enum node_stat_item*@val: delta to add to the counter, can be negative
6501  __mod_memcg_state - update cgroup memory statistics*@memcg: the memory cgroup*@idx: the stat item - can be enum memcg_stat_item or enum node_stat_item*@val: delta to add to the counter, can be negative
6502  __mod_memcg_state - update cgroup memory statistics*@memcg: the memory cgroup*@idx: the stat item - can be enum memcg_stat_item or enum node_stat_item*@val: delta to add to the counter, can be negative
6503  __mod_memcg_state - update cgroup memory statistics*@memcg: the memory cgroup*@idx: the stat item - can be enum memcg_stat_item or enum node_stat_item*@val: delta to add to the counter, can be negative
6504  __count_memcg_events - account VM events in a cgroup*@memcg: the memory cgroup*@idx: the event item*@count: the number of events that occured
6505  __this_cpu_add(nr_page_events, nr_pages)
6506  Check events in order.
6507  local_irq_restore(flags)
6509  If Not mem_cgroup_is_root(memcg) Then 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().
Caller
NameDescribe
uncharge_page
uncharge_list
mem_cgroup_unchargemem_cgroup_uncharge - uncharge a page*@page: page to uncharge* Uncharge a page previously charged with mem_cgroup_try_charge() and* mem_cgroup_commit_charge().