Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bdi_set_max_ratio

Proto:int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned max_ratio)

Type:int

Parameter:

TypeParameterName
struct backing_dev_info *bdi
unsignedmax_ratio
698  ret = 0
700  If max_ratio > 100 Then Return -EINVAL
703  spin_lock_bh( & bdi_lock)
704  If min_ratio > max_ratio Then
705  ret = -EINVAL
706  Else
707  max_ratio = max_ratio
708  max_prop_frac = FPROP_FRAC_BASE * max_ratio / 100
710  spin_unlock_bh( & bdi_lock)
712  Return ret
Caller
NameDescribe
max_ratio_store