函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:commit_charge

函数原型:static void commit_charge(struct page *page, struct mem_cgroup *memcg, bool lrucare)

返回类型:void

参数:

类型参数名称
struct page *page
struct mem_cgroup *memcg
boollrucare
2611  VM_BUG_ON_PAGE(mem_cgroup, page)
2617  如果lrucarelock_page_lru(page, & isolated)
2634  mem_cgroup等于memcg
2636  如果lrucareunlock_page_lru(page, isolated)
调用者
名称描述
mem_cgroup_commit_chargemem_cgroup_commit_charge - commit a page charge*@page: page to charge*@memcg: memcg to charge the page to*@lrucare: page might be on LRU already*@compound: charge the page as compound or small page* Finalize a charge transaction started by
mem_cgroup_migratemem_cgroup_migrate - charge a page's replacement*@oldpage: currently circulating page*@newpage: replacement page* Charge @newpage as a replacement page for @oldpage. @oldpage will* be uncharged upon free.