mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
f2fs: call f2fs_get_meta_page_retry for nat page
[ Upstream commit3acc4522d8] When running fault injection test, if we don't stop checkpoint, some stale NAT entries were flushed which breaks consistency. Fixes:86f33603f8("f2fs: handle errors of f2fs_get_meta_page_nofail") Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5eab98b40a
commit
8b1a51fb42
|
|
@ -109,7 +109,7 @@ static void clear_node_page_dirty(struct page *page)
|
|||
|
||||
static struct page *get_current_nat_page(struct f2fs_sb_info *sbi, nid_t nid)
|
||||
{
|
||||
return f2fs_get_meta_page(sbi, current_nat_addr(sbi, nid));
|
||||
return f2fs_get_meta_page_retry(sbi, current_nat_addr(sbi, nid));
|
||||
}
|
||||
|
||||
static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user