table of contents
PAGE_CACHE_SYNC_READ(9) | Memory Management in Linux | PAGE_CACHE_SYNC_READ(9) |
NAME¶
page_cache_sync_readahead - generic file readahead
SYNOPSIS¶
void page_cache_sync_readahead(struct address_space * mapping, struct file_ra_state * ra, struct file * filp, pgoff_t offset, unsigned long req_size);
ARGUMENTS¶
struct address_space * mapping
struct file_ra_state * ra
struct file * filp
pgoff_t offset
unsigned long req_size
DESCRIPTION¶
page_cache_sync_readahead should be called when a cache miss happened: it will submit the read. The readahead logic may decide to piggyback more pages onto the read request if access patterns suggest it will improve performance.
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.11 |