1PAGE_CACHE_SYNC_READ(9)   Memory Management in Linux   PAGE_CACHE_SYNC_READ(9)
2
3
4

NAME

6       page_cache_sync_readahead - generic file readahead
7

SYNOPSIS

9       void page_cache_sync_readahead(struct address_space * mapping,
10                                      struct file_ra_state * ra,
11                                      struct file * filp, pgoff_t offset,
12                                      unsigned long req_size);
13

ARGUMENTS

15       mapping
16           address_space which holds the pagecache and I/O vectors
17
18       ra
19           file_ra_state which holds the readahead state
20
21       filp
22           passed on to ->readpage and ->readpages
23
24       offset
25           start offset into mapping, in pagecache page-sized units
26
27       req_size
28           hint: total size of the read which the caller is performing in
29           pagecache pages
30

DESCRIPTION

32       page_cache_sync_readahead should be called when a cache miss happened:
33       it will submit the read. The readahead logic may decide to piggyback
34       more pages onto the read request if access patterns suggest it will
35       improve performance.
36
38Kernel Hackers Manual 3.10         June 2019           PAGE_CACHE_SYNC_READ(9)
Impressum