Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:10:44 |
Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:bool wb_over_bg_thresh(struct bdi_writeback *wb)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct bdi_writeback * | wb |
1930 | struct dirty_throttle_control gdtc_stor = {GDTC_INIT(wb)} |
1931 | struct dirty_throttle_control mdtc_stor = {MDTC_INIT(wb, & gdtc_stor)} |
1933 | struct dirty_throttle_control * const mdtc = mdtc_valid( & mdtc_stor) ? & mdtc_stor : NULL |
1941 | le_dirty + write + nfs = global_node_page_state(NR_FILE_DIRTY) + global_node_page_state(NR_UNSTABLE_NFS) |
1945 | If le_dirty + write + nfs > dirty background threshold Then Return true |
1948 | If wb_stat(wb, WB_RECLAIMABLE) > wb_calc_thresh(wb, dirty background threshold ) Then Return true |
1952 | If mdtc Then |
1955 | mem_cgroup_wb_stats(wb, & filepages, & headroom, & le_dirty + write + nfs , & writeback) |
1960 | If le_dirty + write + nfs > dirty background threshold Then Return true |
1963 | If wb_stat(wb, WB_RECLAIMABLE) > wb_calc_thresh(wb, dirty background threshold ) Then Return true |
1968 | Return false |
Name | Describe |
---|---|
wb_check_background_flush |
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 |