Lines Matching defs:folio
278 static int ocfs2_read_folio(struct file *file, struct folio *folio)
280 struct inode *inode = folio->mapping->host;
282 loff_t start = folio_pos(folio);
285 trace_ocfs2_readpage((unsigned long long)oi->ip_blkno, folio->index);
287 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, &folio->page);
297 * Unlock the folio and cycle ip_alloc_sem so that we don't
301 folio_unlock(folio);
314 * and notice that the folio they just read isn't needed.
319 folio_zero_segment(folio, 0, folio_size(folio));
320 folio_mark_uptodate(folio);
326 ret = ocfs2_readpage_inline(inode, &folio->page);
328 ret = block_read_full_folio(folio, ocfs2_get_block);
337 folio_unlock(folio);
499 static bool ocfs2_release_folio(struct folio *folio, gfp_t wait)
501 if (!folio_buffers(folio))
503 return try_to_free_buffers(folio);