函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:50:59
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_throttle_swaprate

函数原型:void mem_cgroup_throttle_swaprate(struct mem_cgroup *memcg, int node, gfp_t gfp_mask)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
intnode
gfp_tgfp_mask
3752  如果非gfp_mask按位与DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks.的值或非memcg则返回
3755  如果非blk_cgroup_congested()则返回
3762  如果throttle_queue则返回
3765  加自旋锁
3766  plist_for_each_entry_safe - iterate safely over list of given type*@pos: the type * to use as a loop counter*@n: another type * to use as temporary storage*@head: the head for your list*@m: the name of the list_head within the struct(si, next, & all available (active, not full) swap_info_structs* protected with swap_avail_lock, ordered by priority.* This is used by get_swap_page() instead of swap_active_head* because swap_active_head includes all swap_info_structs,[node], avail_lists[node])
3771  退出
3774  自旋锁解锁
调用者
名称描述
mem_cgroup_try_charge_delay