函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static unsigned long node_dirty_limit(struct pglist_data *pgdat)

返回类型:unsigned long

参数:

类型参数名称
struct pglist_data *pgdat
479  node_memory等于de_dirtyable_memory - number of dirtyable pages in a node*@pgdat: the node* Return: the node's number of pages potentially available for dirty* page cache. This is the base value for the per-node dirty limits.
480  tsk等于当前进程
483  如果vm_dirty_bytes starts at 0 (disabled) so that it is a function of* vm_dirty_ratio * the amount of dirtyable memorydirty等于DIV_ROUND_UP(vm_dirty_bytes starts at 0 (disabled) so that it is a function of* vm_dirty_ratio * the amount of dirtyable memory, PAGE_SIZE)乘node_memoryglobal_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.
486  否则dirty等于The generator of dirty data starts writeback at this percentagenode_memory除100
489  如果flags按位与Throttle me less: I clean memory rt_task(tsk)则dirty加等于dirty除4
492  返回:dirty
调用者
名称描述
node_dirty_okde_dirty_ok - tells whether a node is within its dirty limits*@pgdat: the node to check* Return: %true when the dirty pages in @pgdat are within the node's* dirty limit, %false if the limit is exceeded.