Lines Matching refs:rac
241 static void orangefs_readahead(struct readahead_control *rac) in orangefs_readahead() argument
245 struct inode *inode = rac->mapping->host; in orangefs_readahead()
248 loff_t new_start = readahead_pos(rac); in orangefs_readahead()
252 loff_t bytes_remaining = inode->i_size - readahead_pos(rac); in orangefs_readahead()
257 else if (pages_remaining > readahead_count(rac)) in orangefs_readahead()
261 readahead_expand(rac, new_start, new_len); in orangefs_readahead()
263 offset = readahead_pos(rac); in orangefs_readahead()
264 i_pages = &rac->mapping->i_pages; in orangefs_readahead()
266 iov_iter_xarray(&iter, ITER_DEST, i_pages, offset, readahead_length(rac)); in orangefs_readahead()
270 &offset, &iter, readahead_length(rac), in orangefs_readahead()
271 inode->i_size, NULL, NULL, rac->file)) < 0) in orangefs_readahead()
278 while ((folio = readahead_folio(rac))) { in orangefs_readahead()