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

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>

+3 -2
+3 -2
fs/hpfs/namei.c
··· 479 479 return err; 480 480 } 481 481 482 - static int hpfs_symlink_readpage(struct file *file, struct page *page) 482 + static int hpfs_symlink_read_folio(struct file *file, struct folio *folio) 483 483 { 484 + struct page *page = &folio->page; 484 485 char *link = page_address(page); 485 486 struct inode *i = page->mapping->host; 486 487 struct fnode *fnode; ··· 509 508 } 510 509 511 510 const struct address_space_operations hpfs_symlink_aops = { 512 - .readpage = hpfs_symlink_readpage 511 + .read_folio = hpfs_symlink_read_folio 513 512 }; 514 513 515 514 static int hpfs_rename(struct user_namespace *mnt_userns, struct inode *old_dir,