Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hostfs: Convert hostfs to read_folio

This is a "weak" conversion which converts straight back to using pages.
A full conversion should be performed at some point, hopefully by
someone familiar with the filesystem.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

+3 -2
+3 -2
fs/hostfs/hostfs_kern.c
··· 434 434 return err; 435 435 } 436 436 437 - static int hostfs_readpage(struct file *file, struct page *page) 437 + static int hostfs_read_folio(struct file *file, struct folio *folio) 438 438 { 439 + struct page *page = &folio->page; 439 440 char *buffer; 440 441 loff_t start = page_offset(page); 441 442 int bytes_read, ret = 0; ··· 505 504 506 505 static const struct address_space_operations hostfs_aops = { 507 506 .writepage = hostfs_writepage, 508 - .readpage = hostfs_readpage, 507 + .read_folio = hostfs_read_folio, 509 508 .dirty_folio = filemap_dirty_folio, 510 509 .write_begin = hostfs_write_begin, 511 510 .write_end = hostfs_write_end,