aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index b527ed4c0225..4ac4150d421d 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1170,10 +1170,11 @@ int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino)
1170 if (page->index > end) 1170 if (page->index > end)
1171 continue; 1171 continue;
1172 1172
1173 if (ino && ino_of_node(page) == ino) 1173 if (ino && ino_of_node(page) == ino) {
1174 wait_on_page_writeback(page); 1174 wait_on_page_writeback(page);
1175 if (TestClearPageError(page)) 1175 if (TestClearPageError(page))
1176 ret = -EIO; 1176 ret = -EIO;
1177 }
1177 } 1178 }
1178 pagevec_release(&pvec); 1179 pagevec_release(&pvec);
1179 cond_resched(); 1180 cond_resched();