From: Matthew Wilcox (Oracle) Date: Fri, 29 Apr 2022 15:12:16 +0000 (-0400) Subject: coda: Convert coda_symlink_filler() to use a folio X-Git-Tag: baikal/mips/sdk6.1~5169^2~29 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e1adf6dd22527a9d0c0ed996d77bb3cf963d152b;p=kernel.git coda: Convert coda_symlink_filler() to use a folio This is a straightforward conversion from the page APIs to the folio APIs. Symlinks are not allowed to be larger than PAGE_SIZE, so there is little work to do here. Signed-off-by: Matthew Wilcox (Oracle) --- diff --git a/fs/coda/symlink.c b/fs/coda/symlink.c index 8adf810424986..ccdbec388091a 100644 --- a/fs/coda/symlink.c +++ b/fs/coda/symlink.c @@ -22,25 +22,24 @@ static int coda_symlink_filler(struct file *file, struct folio *folio) { - struct page *page = &folio->page; struct inode *inode = folio->mapping->host; int error; struct coda_inode_info *cii; unsigned int len = PAGE_SIZE; - char *p = page_address(page); + char *p = folio_address(folio); cii = ITOC(inode); error = venus_readlink(inode->i_sb, &cii->c_fid, p, &len); if (error) goto fail; - SetPageUptodate(page); - unlock_page(page); + folio_mark_uptodate(folio); + folio_unlock(folio); return 0; fail: - SetPageError(page); - unlock_page(page); + folio_set_error(folio); + folio_unlock(folio); return error; }