Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:02:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:CD/DVDs are error prone. When a medium error occurs, the driver may fail* a _large_ part of the i/o request. Imagine the worst scenario:* ---R__________________________________________B__________* ^ reading here ^ bad block(assume 4k)

Proto:static void shrink_readahead_size_eio(struct file *filp, struct file_ra_state *ra)

Type:void

Parameter:

TypeParameterName
struct file *filp
struct file_ra_state *ra
1990  Maximum readahead window /= 4
Caller
NameDescribe
generic_file_buffered_readgeneric_file_buffered_read - generic file read routine*@iocb: the iocb to read*@iter: data destination*@written: already copied* This is a generic file read routine, and uses the* mapping->a_ops->readpage() function for the actual low-level stuff.
filemap_faultlemap_fault - read in file data for page fault handling*@vmf: struct vm_fault containing details of the fault* filemap_fault() is invoked via the vma operations vector for a* mapped memory region to read in file data during a page fault