Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Perform direct synchronous page reclaim

Proto:static int __perform_reclaim(gfp_t gfp_mask, unsigned int order, const struct alloc_context *ac)

Type:int

Parameter:

TypeParameterName
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  Return progress
Caller
NameDescribe
__alloc_pages_direct_reclaimThe really slow allocator path where we enter direct reclaim