Searched refs:ra (Results 1 – 2 of 2) sorted by relevance
/mm/ |
D | readahead.c | 35 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping) in file_ra_state_init() argument 37 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 38 ra->prev_pos = -1; in file_ra_state_init() 291 struct file_ra_state *ra = ractl->ra; in force_page_cache_ra() local 304 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra() 343 static unsigned long get_next_ra_size(struct file_ra_state *ra, in get_next_ra_size() argument 346 unsigned long cur = ra->size; in get_next_ra_size() 416 struct file_ra_state *ra, in try_context_readahead() argument 439 ra->start = index; in try_context_readahead() 440 ra->size = min(size + req_size, max); in try_context_readahead() [all …]
|
D | filemap.c | 2324 static void shrink_readahead_size_eio(struct file_ra_state *ra) in shrink_readahead_size_eio() argument 2326 ra->ra_pages /= 4; in shrink_readahead_size_eio() 2539 struct file_ra_state *ra = &filp->f_ra; in filemap_get_pages() local 2555 page_cache_sync_readahead(mapping, ra, filp, index, in filemap_get_pages() 2611 struct file_ra_state *ra = &filp->f_ra; in filemap_read() local 2618 loff_t last_pos = ra->prev_pos; in filemap_read() 2721 ra->prev_pos = last_pos; in filemap_read() 2963 struct file_ra_state *ra = &file->f_ra; in do_sync_mmap_readahead() local 2965 DEFINE_READAHEAD(ractl, file, ra, mapping, vmf->pgoff); in do_sync_mmap_readahead() 2972 if (!ra->ra_pages) in do_sync_mmap_readahead() [all …]
|