函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-27 15:35:46
Last Modify:2020-03-17 21:13:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get the previous window size, ramp it up, and* return it as the new window size.

函数原型:static unsigned long get_next_ra_size(struct file_ra_state *ra, unsigned long max)

返回类型:unsigned long

参数:

类型参数名称
struct file_ra_state *ra
unsigned longmax
278  cur等于# of readahead pages
280  如果cur小于max除16则返回:4乘cur
282  如果cur小于等于max除2则返回:2乘cur
284  返回:max
调用者
名称描述
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.