Skip to contentSkip to conversation

f2fs: call f2fs_get_meta_page_retry for nat page

PATCH In review Jaegeuk Kim 2 participants 2 messages Oct 26, 2020 – Oct 28, 2020 F2FS file system

lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: call f2fs_get_meta_page_retry for nat page

When running fault injection test, if we don't stop checkpoint, some stale NAT entries were flushed which breaks consistency.

Fixes 86f33603f8c5 ("f2fs: handle errors of f2fs_get_meta_page_nofail")
---
 fs/f2fs/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/node.c +1 -1
index d5d8ce077f29..42394de6c7eb 100644
@@ -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)
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jaegeuk Kim

When running fault injection test, if we don't stop checkpoint, some stale NAT entries were flushed which breaks consistency.

Fixes 86f33603f8c5 ("f2fs: handle errors of f2fs_get_meta_page_nofail")

Thanks,

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel