Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Reclaims as many pages from the given memcg as possible.* Caller is responsible for holding css reference for memcg.

Proto:static int mem_cgroup_force_empty(struct mem_cgroup *memcg)

Type:int

Parameter:

TypeParameterName
struct mem_cgroup *memcg
3149  nr_retries = MEM_CGROUP_RECLAIM_RETRIES
3152  lru_add_drain_all()
3154  Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.
3157  When nr_retries && page_counter_read( & Accounted resources ) cycle
3160  If signal_pending(current process) Then Return -EINTR
3163  progress = try_to_free_mem_cgroup_pages(memcg, 1, GFP_KERNEL, true)
3165  If Not progress Then
3166  nr_retries--
3173  Return 0
Caller
NameDescribe
mem_cgroup_force_empty_write