summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/symlink.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-29 17:12:16 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 22:21:46 +0200
commit124cfc154f6cfb530bfb36e7728406c56ebf37ad (patch)
treec364609659f766c260147a576b4b63ff27fbda9b /fs/squashfs/symlink.c
parentromfs: Convert romfs to read_folio (diff)
downloadlinux-124cfc154f6cfb530bfb36e7728406c56ebf37ad.tar.xz
linux-124cfc154f6cfb530bfb36e7728406c56ebf37ad.zip
squashfs: Convert squashfs 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/squashfs/symlink.c')
-rw-r--r--fs/squashfs/symlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c
index 1430613183e6..2bf977a52c2c 100644
--- a/fs/squashfs/symlink.c
+++ b/fs/squashfs/symlink.c
@@ -30,8 +30,9 @@
#include "squashfs.h"
#include "xattr.h"
-static int squashfs_symlink_readpage(struct file *file, struct page *page)
+static int squashfs_symlink_read_folio(struct file *file, struct folio *folio)
{
+ struct page *page = &folio->page;
struct inode *inode = page->mapping->host;
struct super_block *sb = inode->i_sb;
struct squashfs_sb_info *msblk = sb->s_fs_info;
@@ -101,7 +102,7 @@ error_out:
const struct address_space_operations squashfs_symlink_aops = {
- .readpage = squashfs_symlink_readpage
+ .read_folio = squashfs_symlink_read_folio
};
const struct inode_operations squashfs_symlink_inode_ops = {