Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-28 14:09:42
Last Modify:2022-05-23 13:25:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static void mdtc_calc_avail(struct dirty_throttle_control *mdtc, unsigned long filepages, unsigned long headroom)

Type:void

Parameter:

TypeParameterName
struct dirty_throttle_control *mdtc
unsigned longfilepages
unsigned longheadroom
735  gdtc = mdtc_gdtc(mdtc)
736  clean = filepages - min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(filepages, le_dirty + write + nfs )
737  global_clean = dirtyable - min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(dirtyable , le_dirty + write + nfs )
738  other_clean = global_clean - min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(global_clean, clean)
740  dirtyable = filepages + min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(headroom, other_clean)
Caller
NameDescribe
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.