mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
f2fs: Pass a folio to f2fs_sanity_check_inline_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:
parent
ea3f2069ea
commit
1f6425e33d
|
|
@ -4308,7 +4308,7 @@ extern struct kmem_cache *f2fs_inode_entry_slab;
|
|||
* inline.c
|
||||
*/
|
||||
bool f2fs_may_inline_data(struct inode *inode);
|
||||
bool f2fs_sanity_check_inline_data(struct inode *inode, struct page *ipage);
|
||||
bool f2fs_sanity_check_inline_data(struct inode *inode, struct folio *ifolio);
|
||||
bool f2fs_may_inline_dentry(struct inode *inode);
|
||||
void f2fs_do_read_inline_data(struct folio *folio, struct folio *ifolio);
|
||||
void f2fs_truncate_inline_inode(struct inode *inode, struct folio *ifolio,
|
||||
|
|
|
|||
|
|
@ -48,12 +48,12 @@ static bool inode_has_blocks(struct inode *inode, struct page *ipage)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool f2fs_sanity_check_inline_data(struct inode *inode, struct page *ipage)
|
||||
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, ipage))
|
||||
if (inode_has_blocks(inode, &ifolio->page))
|
||||
return false;
|
||||
|
||||
if (!support_inline_data(inode))
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ static bool sanity_check_inode(struct inode *inode, struct folio *node_folio)
|
|||
}
|
||||
}
|
||||
|
||||
if (f2fs_sanity_check_inline_data(inode, &node_folio->page)) {
|
||||
if (f2fs_sanity_check_inline_data(inode, node_folio)) {
|
||||
f2fs_warn(sbi, "%s: inode (ino=%lx, mode=%u) should not have inline_data, run fsck to fix",
|
||||
__func__, inode->i_ino, inode->i_mode);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user