函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Submit IO for the read-ahead request in file_ra_state.

函数原型:static inline unsigned long ra_submit(struct file_ra_state *ra, struct address_space *mapping, struct file *filp)

返回类型:unsigned long

参数:

类型参数名称
struct file_ra_state *ra
struct address_space *mapping
struct file *filp
62  返回:__do_page_cache_readahead() actually reads a chunk of disk. It allocates* the pages first, then submits them for I/O. This avoids the very bad* behaviour which would occur if page allocations are causing VM writeback.
调用者
名称描述
do_sync_mmap_readaheadSynchronous readahead happens when we don't even find a page in the page* cache at all. We don't want to perform IO under the mmap sem, so if we have* to drop the mmap sem we return the file that was pinned in order for us to do* that
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.