Searched refs:ra (Results 1 – 3 of 3) sorted by relevance
/mm/ |
D | readahead.c | 30 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping) in file_ra_state_init() argument 32 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 33 ra->prev_pos = -1; in file_ra_state_init() 258 static unsigned long get_next_ra_size(struct file_ra_state *ra, in get_next_ra_size() argument 261 unsigned long cur = ra->size; in get_next_ra_size() 333 struct file_ra_state *ra, in try_context_readahead() argument 356 ra->start = offset; in try_context_readahead() 357 ra->size = min(size + req_size, max); in try_context_readahead() 358 ra->async_size = 1; in try_context_readahead() 368 struct file_ra_state *ra, struct file *filp, in ondemand_readahead() argument [all …]
|
D | filemap.c | 1659 struct file_ra_state *ra) in shrink_readahead_size_eio() argument 1661 ra->ra_pages /= 4; in shrink_readahead_size_eio() 1682 struct file_ra_state *ra = &filp->f_ra; in do_generic_file_read() local 1695 prev_index = ra->prev_pos >> PAGE_SHIFT; in do_generic_file_read() 1696 prev_offset = ra->prev_pos & (PAGE_SIZE-1); in do_generic_file_read() 1716 ra, filp, in do_generic_file_read() 1724 ra, filp, page, in do_generic_file_read() 1872 shrink_readahead_size_eio(filp, ra); in do_generic_file_read() 1910 ra->prev_pos = prev_index; in do_generic_file_read() 1911 ra->prev_pos <<= PAGE_SHIFT; in do_generic_file_read() [all …]
|
D | internal.h | 56 static inline unsigned long ra_submit(struct file_ra_state *ra, in ra_submit() argument 60 ra->start, ra->size, ra->async_size); in ra_submit()
|