summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-11-04 10:28:33 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-11-04 12:24:01 +0900
commit4bf08ff6f9f381fa625d65e36c3e8e57313943cf (patch)
treec9d93308315b39fb7b9a56ec9d847f6a338fc1a7 /fs/f2fs
parent66e960c692e9def8451d51e9cdb1ffc294dc27b2 (diff)
downloadop-kernel-dev-4bf08ff6f9f381fa625d65e36c3e8e57313943cf.zip
op-kernel-dev-4bf08ff6f9f381fa625d65e36c3e8e57313943cf.tar.gz
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 <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-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 b527ed4..4ac4150 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)
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();
OpenPOWER on IntegriCloud