函数逻辑报告 |
Source Code:mm\page-writeback.c |
Create Date:2022-07-27 15:32:50 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:domain_dirty_limits - calculate thresh and bg_thresh for a wb_domain*@dtc: dirty_throttle_control of interest* Calculate @dtc->thresh and ->bg_thresh considering* vm_dirty_{bytes|ratio} and dirty_background_{bytes|ratio}. The caller
函数原型:static void domain_dirty_limits(struct dirty_throttle_control *dtc)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dirty_throttle_control * | dtc |
| 397 | bytes等于vm_dirty_bytes starts at 0 (disabled) so that it is a function of* vm_dirty_ratio * the amount of dirtyable memory |
| 398 | bg_bytes等于dirty_background_bytes starts at 0 (disabled) so that it is a function of* dirty_background_ratio * the amount of dirtyable memory |
| 407 | 如果gdtc则 |
| 408 | global_avail等于dirtyable |
| 417 | 如果bytes则ratio等于两数取小(DIV_ROUND_UP(bytes, global_avail), PAGE_SIZE) |
| 420 | 如果bg_bytes则bg_ratio等于两数取小(DIV_ROUND_UP(bg_bytes, global_avail), PAGE_SIZE) |
| 426 | 如果bytes则thresh等于DIV_ROUND_UP(bytes, PAGE_SIZE) |
| 428 | 否则thresh等于ratio乘available_memory除PAGE_SIZE |
| 431 | 如果bg_bytes则bg_thresh等于DIV_ROUND_UP(bg_bytes, PAGE_SIZE) |
| 439 | 如果flags按位与Throttle me less: I clean memory 或rt_task(tsk)则 |
| 440 | bg_thresh加等于bg_thresh除4加dirty_limit除32 |
| 441 | thresh加等于thresh除4加dirty_limit除32 |
| 443 | dirty threshold 等于thresh |
| 447 | 如果非gdtc则trace_global_dirty_state(bg_thresh, thresh) |
| 名称 | 描述 |
|---|---|
| global_dirty_limits | global_dirty_limits - background-writeback and dirty-throttling thresholds*@pbackground: out parameter for bg_thresh*@pdirty: out parameter for thresh* Calculate bg_thresh and thresh for global_wb_domain. See* domain_dirty_limits() for details. |
| balance_dirty_pages | alance_dirty_pages() must be called by processes which are generating dirty* data |
| wb_over_bg_thresh | wb_over_bg_thresh - does @wb need to be written back?*@wb: bdi_writeback of interest* Determines whether background writeback should keep writing @wb or it's* clean enough.* Return: %true if writeback should continue. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |