coda: Convert coda 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 ce3bb0d2
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
#include "coda_psdev.h" #include "coda_psdev.h"
#include "coda_linux.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; int error;
struct coda_inode_info *cii; struct coda_inode_info *cii;
unsigned int len = PAGE_SIZE; unsigned int len = PAGE_SIZE;
...@@ -44,5 +45,5 @@ static int coda_symlink_filler(struct file *file, struct page *page) ...@@ -44,5 +45,5 @@ static int coda_symlink_filler(struct file *file, struct page *page)
} }
const struct address_space_operations coda_symlink_aops = { const struct address_space_operations coda_symlink_aops = {
.readpage = coda_symlink_filler, .read_folio = coda_symlink_filler,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment