函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\flex_proportions.c Create Date:2022-07-27 07:11:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Like __fprop_inc_percpu() except that event is counted only if the given* type has fraction smaller than @max_frac/FPROP_FRAC_BASE

函数原型:void __fprop_inc_percpu_max(struct fprop_global *p, struct fprop_local_percpu *pl, int max_frac)

返回类型:void

参数:

类型参数名称
struct fprop_global *p
struct fprop_local_percpu *pl
intmax_frac
262  如果此条件成立可能性小(为编译器优化)(max_frac < FPROP_FRAC_BASE)则
265  fprop_fraction_percpu(p, pl, & numerator, & denominator)
266  如果numerator大于denominatormax_frac右移When maximum proportion of some event type is specified, this is the* precision with which we allow limitting. Note that this creates an upper* bound on the number of events per period like* ULLONG_MAX >> FPROP_FRAC_SHIFT.位则返回
269  否则fprop_reflect_period_percpu(p, pl)
271  percpu_counter_add_batch( & he local events counter , 1, ---- PERCPU ----)
272  percpu_counter_add( & Number of events in the current period , 1)
调用者
名称描述
wb_domain_writeout_inc