Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:20:32
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_throttle_swaprate

Proto:void mem_cgroup_throttle_swaprate(struct mem_cgroup *memcg, int node, gfp_t gfp_mask)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
intnode
gfp_tgfp_mask
3752  If Not (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.) || Not memcg Then Return
3755  If Not blk_cgroup_congested() Then Return
3762  If throttle_queue Then Return
3765  spin_lock( & swap_avail_lock)
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  Break
3774  spin_unlock( & swap_avail_lock)
Caller
NameDescribe
mem_cgroup_try_charge_delay