Searched refs:ra (Results 1 – 3 of 3) sorted by relevance
/mm/ |
D | readahead.c | 33 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping) in file_ra_state_init() argument 35 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 36 ra->prev_pos = -1; in file_ra_state_init() 226 struct file_ra_state *ra = &filp->f_ra; in force_page_cache_readahead() local 236 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_readahead() 275 static unsigned long get_next_ra_size(struct file_ra_state *ra, in get_next_ra_size() argument 278 unsigned long cur = ra->size; in get_next_ra_size() 348 struct file_ra_state *ra, in try_context_readahead() argument 371 ra->start = offset; in try_context_readahead() 372 ra->size = min(size + req_size, max); in try_context_readahead() [all …]
|
D | filemap.c | 1988 struct file_ra_state *ra) in shrink_readahead_size_eio() argument 1990 ra->ra_pages /= 4; in shrink_readahead_size_eio() 2015 struct file_ra_state *ra = &filp->f_ra; in generic_file_buffered_read() local 2029 prev_index = ra->prev_pos >> PAGE_SHIFT; in generic_file_buffered_read() 2030 prev_offset = ra->prev_pos & (PAGE_SIZE-1); in generic_file_buffered_read() 2052 ra, filp, in generic_file_buffered_read() 2060 ra, filp, page, in generic_file_buffered_read() 2213 shrink_readahead_size_eio(filp, ra); in generic_file_buffered_read() 2253 ra->prev_pos = prev_index; in generic_file_buffered_read() 2254 ra->prev_pos <<= PAGE_SHIFT; in generic_file_buffered_read() [all …]
|
D | internal.h | 59 static inline unsigned long ra_submit(struct file_ra_state *ra, in ra_submit() argument 63 ra->start, ra->size, ra->async_size); in ra_submit()
|