函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_swap_full

函数原型:bool mem_cgroup_swap_full(struct page *page)

返回类型:bool

参数:

类型参数名称
struct page *page
7015  VM_BUG_ON_PAGE(!PageLocked(page), page)
7017  如果vm_swap_full()则返回:true
7019  如果非Whether the swap controller is active 或非cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)则返回:false
7022  memcg等于mem_cgroup
7023  如果非memcg则返回:false
7026 memcg不等于root_mem_cgroup循环如果page_counter_read( & swap)乘2大于等于max
7028  返回:true
7030  返回:false
调用者
名称描述
do_swap_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases
__try_to_reclaim_swaprns 1 if swap entry is freed
shrink_page_listshrink_page_list() returns the number of reclaimed pages