函数逻辑报告 |
Source Code:mm\page-writeback.c |
Create Date:2022-07-27 15:33:41 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__wb_update_bandwidth
函数原型:static void __wb_update_bandwidth(struct dirty_throttle_control *gdtc, struct dirty_throttle_control *mdtc, unsigned long start_time, bool update_ratelimit)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dirty_throttle_control * | gdtc | |
| struct dirty_throttle_control * | mdtc | |
| unsigned long | start_time | |
| bool | update_ratelimit |
| 1356 | lockdep_assert_held( & protects the b_* lists ) |
| 1364 | dirtied等于percpu_counter_read( & stat[WB_DIRTIED]) |
| 1365 | written等于percpu_counter_read( & stat[WB_WRITTEN]) |
| 1371 | 如果elapsed大于HZ且time_before(last time write bw is updated , start_time)则转到:snapshot |
| 1374 | 如果update_ratelimit则 |
| 1375 | domain_update_bandwidth(gdtc, now) |
| 1387 | wb_update_write_bandwidth(wb, elapsed, written) |
| 1389 | snapshot : |
| 1390 | dirtied_stamp等于dirtied |
| 1392 | last time write bw is updated 等于now |
| 名称 | 描述 |
|---|---|
| wb_update_bandwidth | |
| balance_dirty_pages | alance_dirty_pages() must be called by processes which are generating dirty* data |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |