Searched refs:rac (Results 1 – 1 of 1) sorted by relevance
867 static inline struct page *readahead_page(struct readahead_control *rac) in readahead_page() argument871 BUG_ON(rac->_batch_count > rac->_nr_pages); in readahead_page()872 rac->_nr_pages -= rac->_batch_count; in readahead_page()873 rac->_index += rac->_batch_count; in readahead_page()875 if (!rac->_nr_pages) { in readahead_page()876 rac->_batch_count = 0; in readahead_page()880 page = xa_load(&rac->mapping->i_pages, rac->_index); in readahead_page()882 rac->_batch_count = thp_nr_pages(page); in readahead_page()887 static inline unsigned int __readahead_batch(struct readahead_control *rac, in __readahead_batch() argument891 XA_STATE(xas, &rac->mapping->i_pages, 0); in __readahead_batch()[all …]