Commit be05584f authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle)
Browse files

f2fs: Convert f2fs 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: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent fe5ddf6b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2372,8 +2372,9 @@ static int f2fs_mpage_readpages(struct inode *inode,
	return ret;
}

static int f2fs_read_data_page(struct file *file, struct page *page)
static int f2fs_read_data_folio(struct file *file, struct folio *folio)
{
	struct page *page = &folio->page;
	struct inode *inode = page_file_mapping(page)->host;
	int ret = -EAGAIN;

@@ -3935,7 +3936,7 @@ static void f2fs_swap_deactivate(struct file *file)
#endif

const struct address_space_operations f2fs_dblock_aops = {
	.readpage	= f2fs_read_data_page,
	.read_folio	= f2fs_read_data_folio,
	.readahead	= f2fs_readahead,
	.writepage	= f2fs_write_data_page,
	.writepages	= f2fs_write_data_pages,