Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cancel_charge

Proto:static void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
unsigned intnr_pages
2565  If mem_cgroup_is_root(memcg) Then Return
2568  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2569  If Whether legacy memory+swap accounting is active Then page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2572  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
__mem_cgroup_clear_mcancels all extra charges on mc.from and mc.to, and wakes up all waiters.
mem_cgroup_cancel_chargemem_cgroup_cancel_charge - cancel a page charge*@page: page to charge*@memcg: memcg to charge the page to*@compound: charge the page as compound or small page* Cancel a charge transaction started by mem_cgroup_try_charge().