Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dirty_ratio_handler

Proto:int dirty_ratio_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
542  old_ratio = The generator of dirty data starts writeback at this percentage
545  ret = read a vector of integers with min/max values
546  If ret == 0 && write && The generator of dirty data starts writeback at this percentage != old_ratio Then
547  If ratelimit_pages is too high then we can get into dirty-data overload* if a large number of processes all perform writes at the same time
548  vm_dirty_bytes starts at 0 (disabled) so that it is a function of* vm_dirty_ratio * the amount of dirtyable memory = 0
550  Return ret