mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 05:22:19 -04:00
f2fs: Pass a folio to recover_quota_data()
The only caller has a folio, so pass it in. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
committed by
Jaegeuk Kim
parent
7872c71e64
commit
71e5066738
@@ -238,9 +238,9 @@ static int recover_dentry(struct inode *inode, struct folio *ifolio,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int recover_quota_data(struct inode *inode, struct page *page)
|
||||
static int recover_quota_data(struct inode *inode, struct folio *folio)
|
||||
{
|
||||
struct f2fs_inode *raw = F2FS_INODE(page);
|
||||
struct f2fs_inode *raw = F2FS_INODE(&folio->page);
|
||||
struct iattr attr;
|
||||
uid_t i_uid = le32_to_cpu(raw->i_uid);
|
||||
gid_t i_gid = le32_to_cpu(raw->i_gid);
|
||||
@@ -286,7 +286,7 @@ static int recover_inode(struct inode *inode, struct folio *folio)
|
||||
|
||||
inode->i_mode = le16_to_cpu(raw->i_mode);
|
||||
|
||||
err = recover_quota_data(inode, &folio->page);
|
||||
err = recover_quota_data(inode, folio);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user