mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
f2fs: Pass a folio to inode_has_blocks()
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:
parent
1f6425e33d
commit
4a09966a20
|
|
@ -33,9 +33,9 @@ bool f2fs_may_inline_data(struct inode *inode)
|
|||
return !f2fs_post_read_required(inode);
|
||||
}
|
||||
|
||||
static bool inode_has_blocks(struct inode *inode, struct page *ipage)
|
||||
static bool inode_has_blocks(struct inode *inode, struct folio *ifolio)
|
||||
{
|
||||
struct f2fs_inode *ri = F2FS_INODE(ipage);
|
||||
struct f2fs_inode *ri = F2FS_INODE(&ifolio->page);
|
||||
int i;
|
||||
|
||||
if (F2FS_HAS_BLOCKS(inode))
|
||||
|
|
@ -53,7 +53,7 @@ bool f2fs_sanity_check_inline_data(struct inode *inode, struct folio *ifolio)
|
|||
if (!f2fs_has_inline_data(inode))
|
||||
return false;
|
||||
|
||||
if (inode_has_blocks(inode, &ifolio->page))
|
||||
if (inode_has_blocks(inode, ifolio))
|
||||
return false;
|
||||
|
||||
if (!support_inline_data(inode))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user