Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zone_watermark_ok_safe

Proto:bool zone_watermark_ok_safe(struct zone *z, unsigned int order, unsigned long mark, int classzone_idx)

Type:bool

Parameter:

TypeParameterName
struct zone *z
unsigned intorder
unsigned longmark
intclasszone_idx
3505  free_pages = zone_page_state(z, First 128 byte cacheline (assuming 64 bit words) )
3507  If Write-intensive fields used by compaction and vmstats. && free_pages < Write-intensive fields used by compaction and vmstats. Then free_pages = More accurate version that also considers the currently pending* deltas. For that we need to loop over all cpus to find the current* deltas. There is no synchronization so the result cannot be* exactly accurate either.
3510  Return Return true if free base pages are above 'mark'. For high-order checks it* will return true of the order-0 watermark is reached and there is at least* one free page of a suitable size. Checking now avoids taking the zone lock
Caller
NameDescribe
pgdat_balancedReturns true if there is an eligible zone balanced for the request order* and classzone_idx