函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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)

函数原型:static void shrink_readahead_size_eio(struct file *filp, struct file_ra_state *ra)

返回类型:void

参数:

类型参数名称
struct file *filp
struct file_ra_state *ra
1990  Maximum readahead window 除等于4
调用者
名称描述
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