mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
f2fs: Pass a folio to sanity_check_extent_cache()
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
b77dc031a7
commit
afd42fa98b
|
|
@ -19,10 +19,10 @@
|
|||
#include "node.h"
|
||||
#include <trace/events/f2fs.h>
|
||||
|
||||
bool sanity_check_extent_cache(struct inode *inode, struct page *ipage)
|
||||
bool sanity_check_extent_cache(struct inode *inode, struct folio *ifolio)
|
||||
{
|
||||
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
|
||||
struct f2fs_extent *i_ext = &F2FS_INODE(ipage)->i_ext;
|
||||
struct f2fs_extent *i_ext = &F2FS_INODE(&ifolio->page)->i_ext;
|
||||
struct extent_info ei;
|
||||
int devi;
|
||||
|
||||
|
|
|
|||
|
|
@ -4350,7 +4350,7 @@ void f2fs_leave_shrinker(struct f2fs_sb_info *sbi);
|
|||
/*
|
||||
* extent_cache.c
|
||||
*/
|
||||
bool sanity_check_extent_cache(struct inode *inode, struct page *ipage);
|
||||
bool sanity_check_extent_cache(struct inode *inode, struct folio *ifolio);
|
||||
void f2fs_init_extent_tree(struct inode *inode);
|
||||
void f2fs_drop_extent_tree(struct inode *inode);
|
||||
void f2fs_destroy_extent_node(struct inode *inode);
|
||||
|
|
|
|||
|
|
@ -531,7 +531,7 @@ static int do_read_inode(struct inode *inode)
|
|||
|
||||
init_idisk_time(inode);
|
||||
|
||||
if (!sanity_check_extent_cache(inode, &node_folio->page)) {
|
||||
if (!sanity_check_extent_cache(inode, node_folio)) {
|
||||
f2fs_folio_put(node_folio, true);
|
||||
f2fs_handle_error(sbi, ERROR_CORRUPTED_INODE);
|
||||
return -EFSCORRUPTED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user