Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wb_dirty_limits

Proto:static inline void wb_dirty_limits(struct dirty_throttle_control *dtc)

Type:void

Parameter:

TypeParameterName
struct dirty_throttle_control *dtc
1515  wb = wb
1531  wb_thresh = __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
1532  wb_bg_thresh = If dirty threshold Then div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full Else 0
1545  If wb_thresh < 2 * maximal error of a stat counter. Then
1546  wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE)
1547  per-wb counterparts = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK)
1548  Else
1549  wb_reclaimable = wb_stat(wb, WB_RECLAIMABLE)
1550  per-wb counterparts = wb_reclaimable + wb_stat(wb, WB_WRITEBACK)
Caller
NameDescribe
balance_dirty_pagesalance_dirty_pages() must be called by processes which are generating dirty* data