Lines Matching refs:ractl
1357 #define DEFINE_READAHEAD(ractl, f, r, m, i) \ argument
1358 struct readahead_control ractl = { \
1372 void readahead_expand(struct readahead_control *ractl,
1393 DEFINE_READAHEAD(ractl, file, ra, mapping, index); in page_cache_sync_readahead()
1394 page_cache_sync_ra(&ractl, req_count); in page_cache_sync_readahead()
1415 DEFINE_READAHEAD(ractl, file, ra, mapping, folio->index); in page_cache_async_readahead()
1416 page_cache_async_ra(&ractl, folio, req_count); in page_cache_async_readahead()
1419 static inline struct folio *__readahead_folio(struct readahead_control *ractl) in __readahead_folio() argument
1423 BUG_ON(ractl->_batch_count > ractl->_nr_pages); in __readahead_folio()
1424 ractl->_nr_pages -= ractl->_batch_count; in __readahead_folio()
1425 ractl->_index += ractl->_batch_count; in __readahead_folio()
1427 if (!ractl->_nr_pages) { in __readahead_folio()
1428 ractl->_batch_count = 0; in __readahead_folio()
1432 folio = xa_load(&ractl->mapping->i_pages, ractl->_index); in __readahead_folio()
1434 ractl->_batch_count = folio_nr_pages(folio); in __readahead_folio()
1448 static inline struct page *readahead_page(struct readahead_control *ractl) in readahead_page() argument
1450 struct folio *folio = __readahead_folio(ractl); in readahead_page()
1463 static inline struct folio *readahead_folio(struct readahead_control *ractl) in readahead_folio() argument
1465 struct folio *folio = __readahead_folio(ractl); in readahead_folio()