Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_uncharge - uncharge a page*@page: page to uncharge* Uncharge a page previously charged with mem_cgroup_try_charge() and* mem_cgroup_commit_charge().

Proto:void mem_cgroup_uncharge(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
6596  If mem_cgroup_disabled() Then Return
6600  If Not mem_cgroup Then Return
6603  uncharge_gather_clear( & ug)
6604  uncharge_page(page, & ug)
6605  uncharge_batch( & ug)
Caller
NameDescribe
free_compound_pageHigher-order pages are called "compound pages". They are structured thusly:* The first PAGE_SIZE page is called the "head page" and have PG_head set.* The remaining PAGE_SIZE pages are called "tail pages". PageTail() is encoded
delete_from_lru_cacheXXX: It is possible that a page is isolated from LRU cache,* and then kept in swap cache or failed to remove from page cache.* The page count will stop it from being freed by unpoison.* Stress tests should be aware of this memory leak problem.