summaryrefslogtreecommitdiff
path: root/fs/efs
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-29 18:12:16 +0300
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 23:21:45 +0300
commit356d9fbb090ef0b49af27a278d667071fa99b217 (patch)
tree115fd801607c6893157a30ae2cae5487367fa288 /fs/efs
parent025e65c3438ecf677348b7b6ad87758e05f8daf4 (diff)
downloadlinux-356d9fbb090ef0b49af27a278d667071fa99b217.tar.xz
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: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/efs')
-rw-r--r--fs/efs/symlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/efs/symlink.c b/fs/efs/symlink.c
index 923eb91654d5..3b03a573cb1a 100644
--- a/fs/efs/symlink.c
+++ b/fs/efs/symlink.c
@@ -12,8 +12,9 @@
#include <linux/buffer_head.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);
struct buffer_head * bh;
struct inode * inode = page->mapping->host;
@@ -49,5 +50,5 @@ fail:
}
const struct address_space_operations efs_symlink_aops = {
- .readpage = efs_symlink_readpage
+ .read_folio = efs_symlink_read_folio
};