Home
last modified time | relevance | path

Searched refs:ra (Results 1 – 3 of 3) sorted by relevance

/mm/
Dreadahead.c28 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping) in file_ra_state_init() argument
30 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init()
31 ra->prev_pos = -1; in file_ra_state_init()
259 static unsigned long get_next_ra_size(struct file_ra_state *ra, in get_next_ra_size() argument
262 unsigned long cur = ra->size; in get_next_ra_size()
334 struct file_ra_state *ra, in try_context_readahead() argument
357 ra->start = offset; in try_context_readahead()
358 ra->size = min(size + req_size, max); in try_context_readahead()
359 ra->async_size = 1; in try_context_readahead()
369 struct file_ra_state *ra, struct file *filp, in ondemand_readahead() argument
[all …]
Dfilemap.c1520 struct file_ra_state *ra) in shrink_readahead_size_eio() argument
1522 ra->ra_pages /= 4; in shrink_readahead_size_eio()
1543 struct file_ra_state *ra = &filp->f_ra; in do_generic_file_read() local
1552 prev_index = ra->prev_pos >> PAGE_CACHE_SHIFT; in do_generic_file_read()
1553 prev_offset = ra->prev_pos & (PAGE_CACHE_SIZE-1); in do_generic_file_read()
1573 ra, filp, in do_generic_file_read()
1581 ra, filp, page, in do_generic_file_read()
1724 shrink_readahead_size_eio(filp, ra); in do_generic_file_read()
1762 ra->prev_pos = prev_index; in do_generic_file_read()
1763 ra->prev_pos <<= PAGE_CACHE_SHIFT; in do_generic_file_read()
[all …]
Dinternal.h52 static inline unsigned long ra_submit(struct file_ra_state *ra, in ra_submit() argument
56 ra->start, ra->size, ra->async_size); in ra_submit()