Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:boost_watermark

Proto:static inline void boost_watermark(struct zone *zone)

Type:void

Parameter:

TypeParameterName
struct zone *zone
2351  If Not watermark_boost_factor Then Return
2354  max_boost = Multiplies an integer by a fraction, while avoiding unnecessary* overflow or loss of precision.( zone watermarks, access with *_wmark_pages(zone) macros [WMARK_HIGH], watermark_boost_factor, 10000)
2365  If Not max_boost Then Return
2368  max_boost = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(pageblock_nr_pages, max_boost)
2370  watermark_boost = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(watermark_boost + pageblock_nr_pages, max_boost)
Caller
NameDescribe
steal_suitable_fallbackThis function implements actual steal behaviour. If order is large enough,* we can steal whole pageblock. If not, we first move freepages in this* pageblock to our migratetype and determine how many already-allocated pages