Lines Matching refs:readpages_iter
39 struct readpages_iter { struct
45 static int readpages_iter_init(struct readpages_iter *iter, in readpages_iter_init() argument
50 *iter = (struct readpages_iter) { ractl->mapping }; in readpages_iter_init()
67 static inline struct folio *readpage_iter_peek(struct readpages_iter *iter) in readpage_iter_peek()
74 static inline void readpage_iter_advance(struct readpages_iter *iter) in readpage_iter_advance()
92 struct readpages_iter *iter, in readpage_bio_extend()
147 struct readpages_iter *readpages_iter) in bchfs_read() argument
202 if (readpages_iter) { in bchfs_read()
203 ret = readpage_bio_extend(trans, readpages_iter, &rbio->bio, sectors, in bchfs_read()
250 struct readpages_iter readpages_iter; in bch2_readahead() local
254 int ret = readpages_iter_init(&readpages_iter, ractl); in bch2_readahead()
261 while ((folio = readpage_iter_peek(&readpages_iter))) { in bch2_readahead()
263 readpages_iter.folios.nr - in bch2_readahead()
264 readpages_iter.idx, in bch2_readahead()
271 readpage_iter_advance(&readpages_iter); in bch2_readahead()
278 &readpages_iter); in bch2_readahead()
285 darray_exit(&readpages_iter.folios); in bch2_readahead()