Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:commit_charge

Proto:static void commit_charge(struct page *page, struct mem_cgroup *memcg, bool lrucare)

Type:void

Parameter:

TypeParameterName
struct page *page
struct mem_cgroup *memcg
boollrucare
2611  VM_BUG_ON_PAGE(mem_cgroup, page)
2617  If lrucare Then lock_page_lru(page, & isolated)
2634  mem_cgroup = memcg
2636  If lrucare Then unlock_page_lru(page, isolated)
Caller
NameDescribe
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.