f2fs: remove unnecessary TestClearPageError when wait pages writeback
Subsystems (2)
PATCH 1/1 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 Chao Yu <[email protected]>
--- fs/f2fs/node.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
fs/f2fs/node.c +4 -3
@@ -1170,10 +1170,11 @@ int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino)if (page->index > end)continue ; -if (ino &&ino_of_node (page) == ino) +if (ino &&ino_of_node (page) == ino) {wait_on_page_writeback (page); -if (TestClearPageError (page)) - ret = -EIO ; +if (TestClearPageError (page)) + ret = -EIO ; + } }pagevec_release (&pvec);cond_resched ();
Signature · 9 lines
1.7.9.5 ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk