Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

Proto:static unsigned long __wb_calc_thresh(struct dirty_throttle_control *dtc)

Type:unsigned long

Parameter:

TypeParameterName
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 += thresh * wb_min_ratio / 100
785  If wb_thresh > thresh * wb_max_ratio / 100 Then wb_thresh = thresh * wb_max_ratio / 100
788  Return wb_thresh
Caller
NameDescribe
wb_calc_thresh
wb_dirty_limits