函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:20
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:bool wb_over_bg_thresh(struct bdi_writeback *wb)

返回类型:bool

参数:

类型参数名称
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)}
1932  gdtc等于gdtc_stor
1933  struct dirty_throttle_control * const mdtc = mdtc_valid( & mdtc_stor) ? & mdtc_stor : NULL
1940  dirtyable 等于global_dirtyable_memory - number of globally dirtyable pages* Return: the global number of pages potentially available for dirty* page cache. This is the base value for the global dirty limits.
1941  le_dirty + write + nfs 等于global_node_page_state(NR_FILE_DIRTY)加global_node_page_state(NR_UNSTABLE_NFS)
1943  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
1945  如果le_dirty + write + nfs 大于dirty background threshold 则返回:true
1948  如果wb_stat(wb, WB_RECLAIMABLE)大于wb_calc_thresh(wb, dirty background threshold )则返回:true
1952  如果mdtc
1955  mem_cgroup_wb_stats(wb, & filepages, & headroom, & le_dirty + write + nfs , & writeback)
1957  Memory which can be further allocated to a memcg domain is capped by* system-wide clean memory excluding the amount being used in the domain.
1958  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
1960  如果le_dirty + write + nfs 大于dirty background threshold 则返回:true
1963  如果wb_stat(wb, WB_RECLAIMABLE)大于wb_calc_thresh(wb, dirty background threshold )则返回:true
1968  返回:false
调用者
名称描述
wb_check_background_flush
wb_writebackExplicit flushing or periodic writeback of "old" data