Lines Matching refs:folio
64 struct folio *folio; in erofs_fscache_rreq_unlock_folios() local
77 xas_for_each(&xas, folio, last_page) { in erofs_fscache_rreq_unlock_folios()
81 if (xas_retry(&xas, folio)) in erofs_fscache_rreq_unlock_folios()
84 pgpos = (folio_index(folio) - start_page) * PAGE_SIZE; in erofs_fscache_rreq_unlock_folios()
85 pgend = pgpos + folio_size(folio); in erofs_fscache_rreq_unlock_folios()
111 folio_mark_uptodate(folio); in erofs_fscache_rreq_unlock_folios()
113 folio_unlock(folio); in erofs_fscache_rreq_unlock_folios()
219 static int erofs_fscache_meta_read_folio(struct file *data, struct folio *folio) in erofs_fscache_meta_read_folio() argument
222 struct super_block *sb = folio_mapping(folio)->host->i_sb; in erofs_fscache_meta_read_folio()
226 .m_pa = folio_pos(folio), in erofs_fscache_meta_read_folio()
233 rreq = erofs_fscache_alloc_request(folio_mapping(folio), in erofs_fscache_meta_read_folio()
234 folio_pos(folio), folio_size(folio)); in erofs_fscache_meta_read_folio()
243 folio_unlock(folio); in erofs_fscache_meta_read_folio()
331 static int erofs_fscache_read_folio(struct file *file, struct folio *folio) in erofs_fscache_read_folio() argument
336 ret = erofs_fscache_data_read(folio_mapping(folio), folio_pos(folio), in erofs_fscache_read_folio()
337 folio_size(folio), &unlock); in erofs_fscache_read_folio()
340 folio_mark_uptodate(folio); in erofs_fscache_read_folio()
341 folio_unlock(folio); in erofs_fscache_read_folio()
348 struct folio *folio; in erofs_fscache_readahead() local
369 folio = readahead_folio(rac); in erofs_fscache_readahead()
370 size -= folio_size(folio); in erofs_fscache_readahead()
372 folio_mark_uptodate(folio); in erofs_fscache_readahead()
373 folio_unlock(folio); in erofs_fscache_readahead()