hpfs: Convert 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>
This commit is contained in:
Matthew Wilcox (Oracle) 2022-04-29 11:12:16 -04:00
parent 8f4fe249a6
commit cc14d24026
1 changed files with 3 additions and 2 deletions

View File

@ -479,8 +479,9 @@ out:
return err; return err;
} }
static int hpfs_symlink_readpage(struct file *file, struct page *page) static int hpfs_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 inode *i = page->mapping->host; struct inode *i = page->mapping->host;
struct fnode *fnode; struct fnode *fnode;
@ -508,7 +509,7 @@ fail:
} }
const struct address_space_operations hpfs_symlink_aops = { const struct address_space_operations hpfs_symlink_aops = {
.readpage = hpfs_symlink_readpage .read_folio = hpfs_symlink_read_folio
}; };
static int hpfs_rename(struct user_namespace *mnt_userns, struct inode *old_dir, static int hpfs_rename(struct user_namespace *mnt_userns, struct inode *old_dir,