Skip to content

Commit 015622b

Browse files
Matthew Wilcox (Oracle)Jaegeuk Kim
authored andcommitted
f2fs: Use a folio in f2fs_encrypted_get_link()
Use a folio instead of a page when dealing with the page cache. Removes a hidden call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 49bb2b8 commit 015622b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/f2fs/namei.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,19 +1298,19 @@ static const char *f2fs_encrypted_get_link(struct dentry *dentry,
12981298
struct inode *inode,
12991299
struct delayed_call *done)
13001300
{
1301-
struct page *page;
1301+
struct folio *folio;
13021302
const char *target;
13031303

13041304
if (!dentry)
13051305
return ERR_PTR(-ECHILD);
13061306

1307-
page = read_mapping_page(inode->i_mapping, 0, NULL);
1308-
if (IS_ERR(page))
1309-
return ERR_CAST(page);
1307+
folio = read_mapping_folio(inode->i_mapping, 0, NULL);
1308+
if (IS_ERR(folio))
1309+
return ERR_CAST(folio);
13101310

1311-
target = fscrypt_get_symlink(inode, page_address(page),
1311+
target = fscrypt_get_symlink(inode, folio_address(folio),
13121312
inode->i_sb->s_blocksize, done);
1313-
put_page(page);
1313+
folio_put(folio);
13141314
return target;
13151315
}
13161316

0 commit comments

Comments
 (0)