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