Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-28 14:09:47
Last Modify:2022-05-23 13:25:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:(dirty) := 1

Proto:static long long pos_ratio_polynom(unsigned long setpoint, unsigned long dirty, unsigned long limit)

Type:long long

Parameter:

TypeParameterName
unsigned longsetpoint dirty 3
unsigned longdirty
unsigned longlimit setpoint
819  x = div64_s64 - signed 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor
821  pos_ratio = x
822  pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT
823  pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT
824  pos_ratio += 1 << RATELIMIT_CALC_SHIFT
826  Return clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(pos_ratio, 0LL, 2LL << RATELIMIT_CALC_SHIFT)
Caller
NameDescribe
wb_position_ratioDirty position control