函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Perform direct synchronous page reclaim

函数原型:static int __perform_reclaim(gfp_t gfp_mask, unsigned int order, const struct alloc_context *ac)

返回类型:int

参数:

类型参数名称
gfp_tgfp_mask
unsigned intorder
const struct alloc_context *ac
4105  cond_resched()
4108  cpuset_memory_pressure_bump()
4109  psi_memstall_enter - mark the beginning of a memory stall section*@flags: flags to handle nested sections* Marks the calling task as being stalled due to a lack of memory,* such as waiting for a refault or performing reclaim.
4110  fs_reclaim_acquire(gfp_mask)
4111  noreclaim_flag等于memalloc_noreclaim_save()
4113  progress等于try_to_free_pages(zonelist, order, gfp_mask, nodemask)
4116  memalloc_noreclaim_restore(noreclaim_flag)
4117  fs_reclaim_release(gfp_mask)
4118  psi_memstall_leave - mark the end of an memory stall section*@flags: flags to handle nested memdelay sections* Marks the calling task as no longer stalled due to lack of memory.
4120  cond_resched()
4122  返回:progress
调用者
名称描述
__alloc_pages_direct_reclaimThe really slow allocator path where we enter direct reclaim