Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -2
+3 -2
fs/efs/symlink.c
··· 12 12 #include <linux/buffer_head.h> 13 13 #include "efs.h" 14 14 15 - static int efs_symlink_readpage(struct file *file, struct page *page) 15 + static int efs_symlink_read_folio(struct file *file, struct folio *folio) 16 16 { 17 + struct page *page = &folio->page; 17 18 char *link = page_address(page); 18 19 struct buffer_head * bh; 19 20 struct inode * inode = page->mapping->host; ··· 50 49 } 51 50 52 51 const struct address_space_operations efs_symlink_aops = { 53 - .readpage = efs_symlink_readpage 52 + .read_folio = efs_symlink_read_folio 54 53 };