Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:should_compact_retry

Proto:static inline bool should_compact_retry(struct alloc_context *ac, unsigned int order, int alloc_flags, enum compact_result compact_result, enum compact_priority *compact_priority, int *compaction_retries)

Type:bool

Parameter:

TypeParameterName
struct alloc_context *ac
unsigned intorder
intalloc_flags
enum compact_resultcompact_result
enum compact_priority *compact_priority
int *compaction_retries
4026  If Not order || order > PAGE_ALLOC_COSTLY_ORDER is the order at which allocations are deemed* costly to service. That is between allocation orders which should* coalesce naturally under reasonable reclaim pressure and those which* will not. Then Return false
4037  If zone_watermark_ok(zone, 0, min_wmark_pages(zone), ac_classzone_idx(ac), alloc_flags) Then Return true
4041  Return false
Caller
NameDescribe
__alloc_pages_slowpath