Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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  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)
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  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
Caller
NameDescribe
wb_check_background_flush