efs: Convert efs symlinks to read_folio
[linux-block.git] / fs / efs / symlink.c
index 923eb91654d5c9c3e6d19fab643f2130fd536c5f..3b03a573cb1a0f34ef5daeb953a0f687fcb82ae3 100644 (file)
@@ -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
 };