函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static unsigned long global_dirtyable_memory(void)

返回类型:unsigned long

参数:

366  x等于global_zone_page_state(NR_FREE_PAGES)
372  x减等于两数取小(x, linux/mm/page_alloc.c )
374  x加等于global_node_page_state(NR_INACTIVE_FILE)
375  x加等于global_node_page_state(NR_ACTIVE_FILE)
377  如果非 highmem will not be subtracted from the total free memory* for calculating free ratios if vm_highmem_is_dirtyable is truex减等于highmem_dirtyable_memory(x)
380  返回:x加1
调用者
名称描述
global_dirty_limitsglobal_dirty_limits - background-writeback and dirty-throttling thresholds*@pbackground: out parameter for bg_thresh*@pdirty: out parameter for thresh* Calculate bg_thresh and thresh for global_wb_domain. See* domain_dirty_limits() for details.
node_dirty_limitde_dirty_limit - maximum number of dirty pages allowed in a node*@pgdat: the node* Return: the maximum number of dirty pages allowed in a node, based* on the node's dirtyable memory.
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.