Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:A routine for checking "mem" is under move_account() or not.* Checking a cgroup is mc.from or mc.to or under hierarchy of* moving cgroups. This is for waiting at high-memory pressure* caused by "move".

Proto:static bool mem_cgroup_under_move(struct mem_cgroup *memcg)

Type:bool

Parameter:

TypeParameterName
struct mem_cgroup *memcg
1323  bool ret = false
1328  spin_lock( & r from, to )
1329  from = from
1330  to = to
1331  If Not from Then Go to unlock
1334  ret = mem_cgroup_is_descendant(from, memcg) || mem_cgroup_is_descendant(to, memcg)
1336  unlock :
1337  spin_unlock( & r from, to )
1338  Return ret
Caller
NameDescribe
mem_cgroup_wait_acct_move