coda: Convert coda to read_folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 29 Apr 2022 15:12:16 +0000 (11:12 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 9 May 2022 20:21:45 +0000 (16:21 -0400)
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>
fs/coda/symlink.c

index 8907d0508198845f15499ca230743acf011f9c34..8adf810424986b1601e9ac1830d4a6a7dc49043e 100644 (file)
 #include "coda_psdev.h"
 #include "coda_linux.h"
 
-static int coda_symlink_filler(struct file *file, struct page *page)
+static int coda_symlink_filler(struct file *file, struct folio *folio)
 {
-       struct inode *inode = page->mapping->host;
+       struct page *page = &folio->page;
+       struct inode *inode = folio->mapping->host;
        int error;
        struct coda_inode_info *cii;
        unsigned int len = PAGE_SIZE;
@@ -44,5 +45,5 @@ fail:
 }
 
 const struct address_space_operations coda_symlink_aops = {
-       .readpage       = coda_symlink_filler,
+       .read_folio     = coda_symlink_filler,
 };