Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Submit IO for the read-ahead request in file_ra_state.

Proto:static inline unsigned long ra_submit(struct file_ra_state *ra, struct address_space *mapping, struct file *filp)

Type:unsigned long

Parameter:

TypeParameterName
struct file_ra_state *ra
struct address_space *mapping
struct file *filp
62  Return __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.
Caller
NameDescribe
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.