Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bf08ff6 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: remove unnecessary TestClearPageError when wait pages writeback



In wait_on_node_pages_writeback we will test and clear error flag for all
pages in radix tree, but not necessary.
So we only do this for pages belong to the specified inode.

Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 66e960c6
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -1170,11 +1170,12 @@ int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino)
			if (page->index > end)
			if (page->index > end)
				continue;
				continue;


			if (ino && ino_of_node(page) == ino)
			if (ino && ino_of_node(page) == ino) {
				wait_on_page_writeback(page);
				wait_on_page_writeback(page);
				if (TestClearPageError(page))
				if (TestClearPageError(page))
					ret = -EIO;
					ret = -EIO;
			}
			}
		}
		pagevec_release(&pvec);
		pagevec_release(&pvec);
		cond_resched();
		cond_resched();
	}
	}