This is straightforward because netfs already worked in terms of folios.
Showing the changes to include (1 of 5 files). Show all
Unified · Split
| @@ -274,7 +274,7 @@ struct netfs_cache_ops { · 273 unmodified lines | |||
| 274 | 274 | ||
| 275 | struct readahead_control; | 275 | struct readahead_control; |
| 276 | extern void netfs_readahead(struct readahead_control *); | 276 | extern void netfs_readahead(struct readahead_control *); |
| 277 | extern int netfs_readpage(struct file *, struct page *); | 277 | int netfs_read_folio(struct file *, struct folio *); |
| 278 | extern int netfs_write_begin(struct file *, struct address_space *, | 278 | extern int netfs_write_begin(struct file *, struct address_space *, |
| 279 | loff_t, unsigned int, struct folio **, | 279 | loff_t, unsigned int, struct folio **, |
| 280 | void **); | 280 | void **); |