Lines Matching refs:folio

111 	struct folio *folio = page_folio(page);  in v9fs_vfs_readpage()  local
113 return netfs_readpage(file, folio, &v9fs_req_ops, NULL); in v9fs_vfs_readpage()
135 struct folio *folio = page_folio(page); in v9fs_release_page() local
137 if (folio_test_private(folio)) in v9fs_release_page()
140 if (folio_test_fscache(folio)) { in v9fs_release_page()
143 folio_wait_fscache(folio); in v9fs_release_page()
159 struct folio *folio = page_folio(page); in v9fs_invalidate_page() local
161 folio_wait_fscache(folio); in v9fs_invalidate_page()
164 static int v9fs_vfs_write_folio_locked(struct folio *folio) in v9fs_vfs_write_folio_locked() argument
166 struct inode *inode = folio_inode(folio); in v9fs_vfs_write_folio_locked()
168 loff_t start = folio_pos(folio); in v9fs_vfs_write_folio_locked()
171 size_t len = folio_size(folio); in v9fs_vfs_write_folio_locked()
179 iov_iter_xarray(&from, WRITE, &folio_mapping(folio)->i_pages, start, len); in v9fs_vfs_write_folio_locked()
184 folio_start_writeback(folio); in v9fs_vfs_write_folio_locked()
188 folio_end_writeback(folio); in v9fs_vfs_write_folio_locked()
194 struct folio *folio = page_folio(page); in v9fs_vfs_writepage() local
197 p9_debug(P9_DEBUG_VFS, "folio %p\n", folio); in v9fs_vfs_writepage()
199 retval = v9fs_vfs_write_folio_locked(folio); in v9fs_vfs_writepage()
202 folio_redirty_for_writepage(wbc, folio); in v9fs_vfs_writepage()
205 mapping_set_error(folio_mapping(folio), retval); in v9fs_vfs_writepage()
210 folio_unlock(folio); in v9fs_vfs_writepage()
223 struct folio *folio = page_folio(page); in v9fs_launder_page() local
226 if (folio_clear_dirty_for_io(folio)) { in v9fs_launder_page()
227 retval = v9fs_vfs_write_folio_locked(folio); in v9fs_launder_page()
231 folio_wait_fscache(folio); in v9fs_launder_page()
279 struct folio *folio; in v9fs_write_begin() local
290 retval = netfs_write_begin(filp, mapping, pos, len, flags, &folio, fsdata, in v9fs_write_begin()
295 *subpagep = &folio->page; in v9fs_write_begin()
304 struct folio *folio = page_folio(subpage); in v9fs_write_end() local
309 if (!folio_test_uptodate(folio)) { in v9fs_write_end()
315 folio_mark_uptodate(folio); in v9fs_write_end()
326 folio_mark_dirty(folio); in v9fs_write_end()
328 folio_unlock(folio); in v9fs_write_end()
329 folio_put(folio); in v9fs_write_end()