函数逻辑报告 |
Source Code:mm\page-writeback.c |
Create Date:2022-07-27 15:33:22 |
Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Dirty position control
函数原型:static void wb_position_ratio(struct dirty_throttle_control *dtc)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dirty_throttle_control * | dtc |
909 | limit等于hard_dirty_limit(dtc_dom(dtc), dirty threshold ) |
918 | pos_ratio等于0 |
920 | 如果此条件成立可能性小(为编译器优化)(le_dirty + write + nfs >= limit)则返回 |
929 | pos_ratio等于(dirty) := 1 |
956 | 如果此条件成立可能性小(为编译器优化)(capabilities & BDI_CAP_STRICTLIMIT)则 |
959 | 如果per-wb counterparts 小于8则 |
960 | pos_ratio等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(longlong, pos_ratio * 2, 2 << RATELIMIT_CALC_SHIFT) |
962 | 返回 |
965 | 如果per-wb counterparts 大于等于wb_thresh则返回 |
971 | 如果wb_setpoint恒等于0或wb_setpoint恒等于wb_thresh则返回 |
974 | wb_pos_ratio等于(dirty) := 1 |
998 | pos_ratio等于两数取小(pos_ratio, wb_pos_ratio) |
999 | 返回 |
1042 | wb_thresh等于两数取大(wb_thresh, (limit - le_dirty + write + nfs ) / 8) |
1048 | wb_setpoint等于setpoint乘x右移16位 |
1057 | span等于dirty threshold 减wb_thresh加8乘write_bw的和乘x右移16位 |
1058 | x_intercept等于wb_setpoint加span |
1060 | 如果per-wb counterparts 小于x_intercept减span除4则 |
1063 | 否则pos_ratio除等于4 |
1071 | x_intercept等于wb_thresh除2 |
1072 | 如果per-wb counterparts 小于x_intercept则 |
1076 | 否则pos_ratio乘等于8 |
名称 | 描述 |
---|---|
balance_dirty_pages | alance_dirty_pages() must be called by processes which are generating dirty* data |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |