Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-28 14:12:04
Last Modify:2020-03-17 21:13:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get the previous window size, ramp it up, and* return it as the new window size.

Proto:static unsigned long get_next_ra_size(struct file_ra_state *ra, unsigned long max)

Type:unsigned long

Parameter:

TypeParameterName
struct file_ra_state *ra
unsigned longmax
278  cur = # of readahead pages
280  If cur < max / 16 Then Return 4 * cur
282  If cur <= max / 2 Then Return 2 * cur
284  Return max
Caller
NameDescribe
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.