Lines Matching refs:folio

327 	struct folio *folio = page_folio(page);  in afs_symlink_readpage()  local
334 fsreq->pos = folio_pos(folio); in afs_symlink_readpage()
335 fsreq->len = folio_size(folio); in afs_symlink_readpage()
368 struct folio *folio, void **_fsdata) in afs_check_write_begin() argument
391 struct folio *folio = page_folio(page); in afs_readpage() local
393 return netfs_readpage(file, folio, &afs_req_ops, NULL); in afs_readpage()
405 static void afs_invalidate_dirty(struct folio *folio, unsigned int offset, in afs_invalidate_dirty() argument
408 struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio)); in afs_invalidate_dirty()
412 priv = (unsigned long)folio_get_private(folio); in afs_invalidate_dirty()
415 if (offset == 0 && length == folio_size(folio)) in afs_invalidate_dirty()
426 f = afs_folio_dirty_from(folio, priv); in afs_invalidate_dirty()
427 t = afs_folio_dirty_to(folio, priv); in afs_invalidate_dirty()
445 priv = afs_folio_dirty(folio, f, t); in afs_invalidate_dirty()
446 folio_change_private(folio, (void *)priv); in afs_invalidate_dirty()
447 trace_afs_folio_dirty(vnode, tracepoint_string("trunc"), folio); in afs_invalidate_dirty()
451 trace_afs_folio_dirty(vnode, tracepoint_string("undirty"), folio); in afs_invalidate_dirty()
452 folio_clear_dirty_for_io(folio); in afs_invalidate_dirty()
454 trace_afs_folio_dirty(vnode, tracepoint_string("inval"), folio); in afs_invalidate_dirty()
455 folio_detach_private(folio); in afs_invalidate_dirty()
466 struct folio *folio = page_folio(page); in afs_invalidatepage() local
468 _enter("{%lu},%u,%u", folio_index(folio), offset, length); in afs_invalidatepage()
473 afs_invalidate_dirty(folio, offset, length); in afs_invalidatepage()
475 folio_wait_fscache(folio); in afs_invalidatepage()
485 struct folio *folio = page_folio(page); in afs_releasepage() local
486 struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio)); in afs_releasepage()
489 vnode->fid.vid, vnode->fid.vnode, folio_index(folio), folio->flags, in afs_releasepage()
495 if (folio_test_fscache(folio)) { in afs_releasepage()
498 folio_wait_fscache(folio); in afs_releasepage()
502 if (folio_test_private(folio)) { in afs_releasepage()
503 trace_afs_folio_dirty(vnode, tracepoint_string("rel"), folio); in afs_releasepage()
504 folio_detach_private(folio); in afs_releasepage()