函数逻辑报告 |
Source Code:mm\page-writeback.c |
Create Date:2022-07-27 15:33:37 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Maintain wb->dirty_ratelimit, the base dirty throttle rate.* Normal wb tasks will be curbed at or below it in long term.* Obviously it should be around (write_bw / N) when there are N dd tasks.
函数原型:static void wb_update_dirty_ratelimit(struct dirty_throttle_control *dtc, unsigned long dirtied, unsigned long elapsed)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dirty_throttle_control * | dtc | |
| unsigned long | dirtied | |
| unsigned long | elapsed |
| 1192 | dirty等于le_dirty + write + nfs |
| 1194 | limit等于hard_dirty_limit(dtc_dom(dtc), dirty threshold ) |
| 1209 | dirty_rate等于dirtied减dirtied_stamp的差乘HZ除elapsed |
| 1216 | task_ratelimit自加 |
| 1290 | step等于0 |
| 1303 | 如果此条件成立可能性小(为编译器优化)(capabilities & BDI_CAP_STRICTLIMIT)则 |
| 1304 | dirty等于per-wb counterparts |
| 1305 | 如果per-wb counterparts 小于8则setpoint等于per-wb counterparts 加1 |
| 1307 | 否则setpoint等于wb_thresh加wb_bg_thresh的和除2 |
| 1314 | 如果dirty_ratelimit小于x则step等于x减dirty_ratelimit |
| 1316 | 否则 |
| 1319 | 如果dirty_ratelimit大于x则step等于dirty_ratelimit减x |
| 1328 | shift等于dirty_ratelimit除2乘step加1的和 |
| 1329 | 如果shift小于BITS_PER_LONG则step等于DIV_ROUND_UP(step >> shift, 8) |
| 1331 | 否则step等于0 |
| 1336 | 否则dirty_ratelimit减等于step |
| 名称 | 描述 |
|---|---|
| __wb_update_bandwidth |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |