函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-throttle.c Create Date:2022-07-27 19:17:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:group's limit in LIMIT_MAX is scaled if low limit is set. This scale is to* make the IO dispatch more smooth.* Scale up: linearly scale up according to lapsed time since upgrade. For* every throtl_slice, the limit scales up 1/2 .low limit till the

函数原型:static uint64_t throtl_adjusted_limit(uint64_t low, struct throtl_data *td)

返回类型:uint64_t

参数:

类型参数名称
uint64_tlow
struct throtl_data *td
289  如果scale小于4096且time_after_eq(jiffies, low_upgrade_time + scale * throtl_slice)则scale等于jiffieslow_upgrade_time的差除throtl_slice
293  返回:lowlow右移1位的值乘scale
调用者
名称描述
tg_bps_limit
tg_iops_limit