efs: Convert efs symlinks 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 025e65c3
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
#include "efs.h" #include "efs.h"
static int efs_symlink_readpage(struct file *file, struct page *page) static int efs_symlink_read_folio(struct file *file, struct folio *folio)
{ {
struct page *page = &folio->page;
char *link = page_address(page); char *link = page_address(page);
struct buffer_head * bh; struct buffer_head * bh;
struct inode * inode = page->mapping->host; struct inode * inode = page->mapping->host;
...@@ -49,5 +50,5 @@ static int efs_symlink_readpage(struct file *file, struct page *page) ...@@ -49,5 +50,5 @@ static int efs_symlink_readpage(struct file *file, struct page *page)
} }
const struct address_space_operations efs_symlink_aops = { const struct address_space_operations efs_symlink_aops = {
.readpage = efs_symlink_readpage .read_folio = efs_symlink_read_folio
}; };
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