Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:09:57 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:wb_update_write_bandwidth
Proto:static void wb_update_write_bandwidth(struct bdi_writeback *wb, unsigned long elapsed, unsigned long written)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bdi_writeback * | wb | |
| unsigned long | elapsed | |
| unsigned long | written |
| 1088 | avg = urther smoothed write bw, > 0 |
| 1089 | old = he estimated write bandwidth |
| 1102 | bw = written - min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(written, pages written at bw_time_stamp ) |
| 1104 | If Value for the false possibility is greater at compile time(elapsed > period) Then |
| 1109 | bw += he estimated write bandwidth * (period - elapsed) |
| 1121 | out : |
| 1123 | avg = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(avg, 1LU) |
| 1124 | If wb_has_dirty_io(wb) Then |
| 1125 | delta = avg - urther smoothed write bw, > 0 |
| 1126 | WARN_ON_ONCE(atomic_long_add_return(delta, & tot_write_bandwidth) <= 0) |
| 1129 | he estimated write bandwidth = bw |
| 1130 | urther smoothed write bw, > 0 = avg |
| Name | Describe |
|---|---|
| __wb_update_bandwidth |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |