函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wb_dirty_limits

函数原型:static inline void wb_dirty_limits(struct dirty_throttle_control *dtc)

返回类型:void

参数:

类型参数名称
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等于如果dirty threshold 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 否则0
1545  如果wb_thresh小于2乘maximal error of a stat counter.
1546  wb_reclaimable等于wb_stat_sum(wb, WB_RECLAIMABLE)
1547  per-wb counterparts 等于wb_reclaimablewb_stat_sum(wb, WB_WRITEBACK)
1548  否则
1549  wb_reclaimable等于wb_stat(wb, WB_RECLAIMABLE)
1550  per-wb counterparts 等于wb_reclaimablewb_stat(wb, WB_WRITEBACK)
调用者
名称描述
balance_dirty_pagesalance_dirty_pages() must be called by processes which are generating dirty* data