函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void mdtc_calc_avail(struct dirty_throttle_control *mdtc, unsigned long filepages, unsigned long headroom)

返回类型:void

参数:

类型参数名称
struct dirty_throttle_control *mdtc
unsigned longfilepages
unsigned longheadroom
735  gdtc等于mdtc_gdtc(mdtc)
736  clean等于filepages两数取小(filepages, le_dirty + write + nfs )
737  global_clean等于dirtyable 两数取小(dirtyable , le_dirty + write + nfs )
738  other_clean等于global_clean两数取小(global_clean, clean)
740  dirtyable 等于filepages两数取小(headroom, other_clean)
调用者
名称描述
balance_dirty_pagesalance_dirty_pages() must be called by processes which are generating dirty* data
wb_over_bg_threshwb_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.