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

romfs: Convert romfs 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>

+5 -4
+5 -4
fs/romfs/super.c
··· 18 18 * Changed for 2.1.19 modules 19 19 * Jan 1997 Initial release 20 20 * Jun 1997 2.1.43+ changes 21 - * Proper page locking in readpage 21 + * Proper page locking in read_folio 22 22 * Changed to work with 2.1.45+ fs 23 23 * Jul 1997 Fixed follow_link 24 24 * 2.1.47 ··· 41 41 * dentries in lookup 42 42 * clean up page flags setting 43 43 * (error, uptodate, locking) in 44 - * in readpage 44 + * in read_folio 45 45 * use init_special_inode for 46 46 * fifos/sockets (and streamline) in 47 47 * read_inode, fix _ops table order ··· 99 99 /* 100 100 * read a page worth of data from the image 101 101 */ 102 - static int romfs_readpage(struct file *file, struct page *page) 102 + static int romfs_read_folio(struct file *file, struct folio *folio) 103 103 { 104 + struct page *page = &folio->page; 104 105 struct inode *inode = page->mapping->host; 105 106 loff_t offset, size; 106 107 unsigned long fillsize, pos; ··· 143 142 } 144 143 145 144 static const struct address_space_operations romfs_aops = { 146 - .readpage = romfs_readpage 145 + .read_folio = romfs_read_folio 147 146 }; 148 147 149 148 /*