函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:45:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cancel_charge

函数原型:static void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
unsigned intnr_pages
2565  如果mem_cgroup_is_root(memcg)则返回
2568  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2569  如果Whether legacy memory+swap accounting is active page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
2572  设置一个css引用
调用者
名称描述
__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().