函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:33:13
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__wb_calc_thresh - @wb's share of dirty throttling threshold*@dtc: dirty_throttle_context of interest* Note that balance_dirty_pages() will only seriously take it as a hard limit* when sleeping max_pause per page is not enough to keep the dirty pages under

函数原型:static unsigned long __wb_calc_thresh(struct dirty_throttle_control *dtc)

返回类型:unsigned long

参数:

类型参数名称
struct dirty_throttle_control *dtc
766  dom等于dtc_dom(dtc)
767  thresh等于dirty threshold
775  fprop_fraction_percpu( & Scale the writeback cache size proportional to the relative* writeout speed, wb_completions, & numerator, & denominator)
778  wb_thresh等于thresh乘100减di_min_ratio keeps the sum of the minimum dirty shares of all* registered backing devices, which, for obvious reasons, can not* exceed 100%.的差除100
779  wb_thresh乘等于numerator
780  wb_thresh等于div64_ul(wb_thresh, denominator)
782  wb_min_max_ratio(wb, & wb_min_ratio, & wb_max_ratio)
784  wb_thresh加等于threshwb_min_ratio除100
785  如果wb_thresh大于threshwb_max_ratio除100则wb_thresh等于threshwb_max_ratio除100
788  返回:wb_thresh
调用者
名称描述
wb_calc_thresh
wb_dirty_limits